<!-- 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 (URL =="http://www.sacbee.com/cgi-bin/sacbee/traffic/showtraffic.cgi")
		{
			options += "resizable=yes,scrollbars=yes,status=no,";
			options += "menubar=no,toolbar=no,location=no,directories=no,";
			URL = 'http://207.183.236.21/50corridor/real_time_traffic.asp?w=700&h=600&t=50_Corridor_Real_Time_Traffic' 
			popupWin = window.open(URL,'title', options);
		}
	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,";
		}
	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;
	}
}
