<!-- hide from non-javascript enabled browsers

// Remember to make the width of the window 10px greater than the new page
// Remember to make the height  of the window 19px greater than the new page

// open new window


function makeProjectWindow(URL)
	{
	window.opener.location = URL;
	self.close();
}

function makeWindow(URL,w,h,t)
	 {
	var windowLeft=eval((screen.availWidth -w)/2);
	var windowTop=eval((screen.availHeight -h)/2);
	var title = t;
	var options = "width=" + w + ",height=" + h + ",top=" + windowTop + ",left=" + windowLeft + " ,";
	checkURL = URL.substring(0,4);
	
	if (checkURL!="http")
		 {
		options += "resizable=no,scrollbars=no,status=no,";
		options += "menubar=no,toolbar=no,location=no,directories=no,";
		URL =  URL+  '&w=' + w + '&h=' + h + '&t=' + t;
		}
	else
		 {
		options += "resizable=yes,scrollbars=yes,status=no,";
		options += "menubar=no,toolbar=no,location=no,directories=no,";
		}
		//alert(URL + ' url');
	popupWin = window.open(URL,'title', options);
	}

function makeWindowScroll(URL,w,h,t)
	 {
	var windowLeft=eval((screen.availWidth -w)/2);
	var windowTop=eval((screen.availHeight -h)/2);
	var title = t;
	var options = "width=" + w + ",height=" + h + ",top=" + windowTop + ",left=" + windowLeft + " ,";
	checkURL = URL.substring(0,4);
	if (checkURL!="http")
		 {
		options += "resizable=yes,scrollbars=yes,status=no,";
		options += "menubar=no,toolbar=no,location=no,directories=no,";
		URL =  URL+  '&w=' + w + '&h=' + h + '&t=' + t;
		}
	else
		 {
		options += "resizable=yes,scrollbars=yes,status=no,";
		options += "menubar=no,toolbar=no,location=no,directories=no,";
		}
	popupWin = window.open(URL,'title', options);
	}


function makeSite(URL,w,h,t) {
	var windowLeft=(screen.availWidth -w)/2;
	var windowTop=(screen.availHeight -h)/2;
	var title = t;
	var options = "width=" + w + ",height=" + h + ",top=" + windowTop + ",left=" + windowLeft + " ,";
	options += "resizable=no,scrollbars=no,status=no,";
	options += "menubar=no,toolbar=no,location=no,directories=no,";
	URL = URL+  '&w=' + w + '&h=' + h + '&t=' + t;
	popupWin = window.open(URL,'title', options);
	}


function newScreen(h,w) {
	if (navigator.appName.indexOf('Microsoft') != -1)
	{
		window.moveTo((screen.availWidth -w)/2,(screen.availHeight - h)/2);
		window.resizeTo(w,h);
	}
	else
	{ 
		window.screenX = eval((screen.availWidth - w)/2);
		window.screenY = eval((screen.availHeight - h)/2);
		window.outerHeight = h;
		window.outerWidth =w;
	}
}


