
function newWindow(targetURL,iwidth,iheight,ileft, itop)
  	{
     	vmax = screen.availHeight;
	  	hmax = screen.availWidth;
		if (!itop) itop = 25;
		if (!ileft) ileft = 25;
		if (!iwidth) iwidth = 650;
		if (!iheight) iheight = 525;

  		sname = Math.random() + "";
		sname = "window" + sname.replace(".","");
		sparams= "top=" + itop + ", left=" + ileft + ", height=" + iheight + ", width=" + iwidth + " menubar=no, toolbar=no, statusbar=no, scrollbars=yes";
		mychild = window.open(targetURL,sname,sparams);
  	}

function show(name) {

   // what div item are we talking about? Get placeholder div
   var menu = document.getElementById('menu0'+name);
   var detail = document.getElementById('detail'+name);
   var ph = document.getElementById("default");
 
   //alert("Menu: " + name + "/ Detail: " + name);
    
   // bold the title on mouseover
   menu.className="menuitem_hover"; 
   // show the detail for this title
   detail.style.display="block";
   // hide placeholder
   ph.style.display="none";
}

function hide(name) {

   // what div item are we talking about? Get placeholder div
   var menu = document.getElementById('menu0'+name);
   var detail = document.getElementById('detail'+name);
   var ph = document.getElementById("default");
   
   // unbold the title
   menu.className="menuitem_link";
   // expose placeholder
   ph.style.display="block";
   // hide details
   detail.style.display="none";
}

function showmsg(name) {
    var msg = document.getElementById(name);
    msg.style.display="block";
    msg.style.opacity=50;
}

function hidemsg(name) {
    var msg = document.getElementById(name);
    msg.style.display="none"
}
