function popup(url, name, width, height)
{
   var str = "height=" + height + ",innerHeight=" + height;
		str += ",width=" + width + ",innerWidth=" + width;
		str += ",status=no,scrollbars=yes,resizable=no";
		  if (window.screen)
		{
				var ah = screen.availHeight - 30;
				var aw = screen.availWidth - 10;
				var xc = (aw - width) / 2;
				var yc = (ah - height) / 2;

				str += ",left=" + xc + ",screenX=" + xc;
				str += ",top=" + yc + ",screenY=" + yc;
		}
		var win = window.open(url, name, str);
}
 function showhideOps(layer_ref, state) { 
	
	if (document.all) { //IS IE 4 or 5 (or 6 beta) 
		eval( "document.all." + layer_ref + ".style.display = state"); 
	} 
	
	if (document.layers) { //IS NETSCAPE 4 or below 
		
		document.layers[layer_ref].display = state; 
	} 

	if (document.getElementById &&!document.all) { 
		hza = document.getElementById(layer_ref); 
		hza.style.display = state; 
	} 
} 

function popup(url, name, width, height)

{

   var str = "height=" + height + ",innerHeight=" + height;

		str += ",width=" + width + ",innerWidth=" + width;

		str += ",status=yes,scrollbars=yes,resizable=no";

		  if (window.screen)

		{

				var ah = screen.availHeight - 30;

				var aw = screen.availWidth - 10;

				var xc = (aw - width) / 2;

				var yc = (ah - height) / 2;



				str += ",left=" + xc + ",screenX=" + xc;

				str += ",top=" + yc + ",screenY=" + yc;

		}

		var win = window.open(url, name, str);

}
