﻿var winopts = "scrollbars=no,resizable=yes,height=380,width=550,copyhistory=0,";
var smallwindow = null;

//Function to open a new internet browser
function MM_openBrWindow(theURL, winName, features)
{
	window.open(theURL, winName, features);
}

function historywin(filename)
{
	fileURL = filename;
	if (parseInt(navigator.appVersion) < 4)
	{
		if (smallwindow != null) smallwindow.close();
	}
	timerID = setTimeout('Opener(fileURL)', 100);
}

function Opener(winname)
{
	filename = winname;
	winname = "historywin"

	smallwindow = window.open(filename, winname, winopts)

	if (navigator.appVersion.indexOf("(X11") != -1 ||
        navigator.appVersion.indexOf("(Mac") != -1)
		smallwindow = window.open(filename, winname, winopts)

	if (navigator.appVersion.indexOf("MSIE") == -1)
		smallwindow.mainWin = this;

	WindowFocus();
}

function WindowFocus() {
    if (navigator.appVersion.indexOf("2.") == -1 &&
                navigator.appVersion.indexOf("MSIE") == -1)
        smallwindow.focus();
}

function PlanRatingsAfterLogin() {
    Lennar.Global.reloadPage();
}
