function showmsg(id)
{
 o = document.getElementById("msg"+id).style;
 o.display = (o.display == "none") ? "" : "none";
 return true;
}

function showme(uid,imgid)
{
	if(document.all[uid].style.display=="none")
	{
		document.all[imgid].src="images/minus.gif";
		document.all[uid].style.display="";
	}
	else
	{
		document.all[imgid].src="images/plus.gif";
		document.all[uid].style.display="none";	
	}
return false;
}
function gotopage(pg)
{
  location.href=pg;
}


var popupWindow = null;

function popup(url,width,height) {
 if(popupWindow!=null)
  {
  if (typeof(popupWindow) == "object")
   popupWindow.close();
//   popupWindow = null;
  }
        var width=width;
        var height=height;
        var top  = (screen.height - height) / 2;
        var left = (screen.width  - width)  / 2;
        $popup='popup'+width+'x'+height;
    		popupWindow = window.open(url,$popup,'toolbar=no,menubar=no,scrollbars=yes,resize=yes,titlebar=no,resizable=yes,width='+width+',height='+height+',top='+top+',left='+left+'');
        popupWindow.focus();
}
function ov_menu(div)
 {
   div.style.backgroundColor = "#ad2927";

 }
 
 
function out_menu(div)
 {
   div.style.backgroundColor = "#d7261c";
 }

function printer(elemID,number) {
  document.getElementById( elemID ).style.display = 'block';
  document.getElementById( "add"+number ).style.display = 'none';
  document.getElementById( "add"+(number+1) ).style.display = 'block';

}

