var _window = null;

function OpenWin(url, title, height, width)
{
	if (_window != null && _window.closed == true)	 
	{
		_window = null;
	}					 
				
	//check if the window is closed if not you can get a message access denied
	if(_window == null )
	{
		_window = window.open(url, title,'resizable=1,location=0,toolbar=0,scrollbars=1,menubar=0,height='+ height +',width=' + width  ,'');
		_window.focus();
	}
	else
	{				
		_window.resizeTo(parseInt(width),parseInt(height));
		_window.location.href = url;
		_window.focus();
	}
				
}


function showDiv(divid)
{

   if (document.layers)
   {
   
   document.layers[divid].display = "";
	document.layers[divid].visibility="show";
   }
   else
   {    
		document.getElementById(divid).style.display="";
		document.getElementById(divid).style.visibility="visible";
		
    }
}

function hideDiv(divid)
{
 
   if (document.layers)
   {
   document.layers[divid].display="none";
    document.layers[divid].visibility="hide";
    }
   else
   {
   document.getElementById(divid).style.display="none";
    document.getElementById(divid).style.visibility="hidden";
    }
}


