<!--
/*
Name:         showUpdate
Input:        page to go to (including ?category=), name to show update for
Output:       window with the show update page. 
Description:  This function will open another window to update the specific 
              category that was inputed to the function. 
*/
function showUpdate(page, name)
{
	var hcenter, wcenter;
	hcenter = screen.height;
	hcenter = (hcenter - 265)/2;
	wcenter = screen.width;
	wcenter = (wcenter - 600)/2;
	window.open(page + name,"" ,"toolbar=no,menubar=no,personalbar=no, width=600,height=265,scrollbars=no,resizable=no,dependent=yes,z-lock=yes, top=" + hcenter + ",left=" + wcenter );
}
/*
Name:         changePage
Input:        page to change to 
Output:       page redirect 
Description:  This function will redirect to the specific page.  
*/
function changePage(page)
{
	window.location=page;
}

/*
Name:         closeWindow
Input:        none
Output:       none 
Description:  This function will close the current window. 
*/
function closeWindow()
{
	window.close();
}
/*
Name: 				compInfo
Input: 				none 
Output: 			none 
Description:	Funcion will find out the information from the browser and client computer and store it in variables 

	//display stats 
	document.write("Screen resolution = "+sw+"x"+sh);
	document.write("<p>Browser resolution = "+bw+"x"+bh);
	document.write("<p>Browser resolution (layers) = "+bw2+"x"+bh2);
	document.write("<p>Browser name = "+b+"<br> Version = "+v);
	document.write("<p>Color depth = "+sc+" bit");
	document.write("<p>Java enabled = "+j);

*/
function compInfo()
{
	// get browser and screen variables 
	var sw=screen.width;
	var sh=screen.height;
	var b=navigator.appName;
	var v=navigator.appVersion.charAt(0);
	var bw = document.body.clientWidth;
	var bh = document.body.clientHeight;
	var bw2 = window.innerWidth; //with layers size 
	var bh2 = window.innerHeight;
	var j=navigator.javaEnabled();
	if (b != "Netscape") 
	{
	 var sc=screen.colorDepth 
	}
	else
	{
	 var sc=screen.pixelDepth
	};
}

function popup(page)
{
	var hcenter, wcenter;
	hcenter = screen.height;
	hcenter = (hcenter - 500)/2;
	wcenter = screen.width;
	wcenter = (wcenter - 600)/2;
	window.open(page,"" ,"toolbar=no,menubar=no,personalbar=no, width=600,height=500,scrollbars=no,resizable=no,dependent=yes,z-lock=yes, top=" + hcenter + ",left=" + wcenter );
}
//-->