
		
		function OpenWindow(url) 
		{
		    win = window.open(url, '_blank', 'width=980,height=700,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,resizable=yes,scrollbars=yes,top=5, left=5');
		}

		function OpenNewWindow(url) {
		    win = window.open(url);
		} 
		
		function OpenWindow(url, width, height) 
		{ 
		 var left,top = 5;
		  if(width==undefined){
			  	width=Math.floor(screen.width * 0.8);
			  	left = Math.floor((screen.width - width)/2);
		  }
		  if(height==undefined){
			  	height=Math.floor(screen.height * 0.7);
			  	top = Math.floor((screen.height - height)/2);
		  }
		win = window.open(url, '_blank', 'width=' + width + ',height=' + height + ',toolbar=no,location=yes,directories=no,status=no,menubar=no,copyhistory=no,resizable=yes,scrollbars=yes,top=5, left=5'); 
		} 

		function OpenWindowNoMove(url) 
		{
		    win = window.open(url, '_blank', 'width=1020,height=700,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,resizable=yes,scrollbars=yes'); 
		} 

		function OpenWindowWithScroll(url) 
		{
		    win = window.open(url, '_blank', 'width=1050,height=900,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,resizable=yes,scrollbars=yes,top=5,left=5'); 
		} 

		function OpenWindowFullscreen(url)
		{
		    win = window.open(url, '_blank', 'width=' + (screen.width - 10) + ',height=' + (screen.height - 60) + ',scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,resizable=yes,scrollbars=yes,top=0,left=0'); 
		}
		
		function setHourglass(ctrl) 
		{
		  if ((ctrl!=null)&&(ctrl!="")) 
		  {
			document.all.item(ctrl).style.cursor = 'wait';
		  }
		  document.body.style.cursor = 'wait';
		}

		function OpenObject(id) 
		{ 
		  if (document.title.substr(0,8)=="Lookup -")
		  {
		    window.returnValue = id;
		    window.close();
		  }
		  else
		      window.open('browser2.aspx?ID=' + id, 'object' + id.replace('|', '__'), 'width=' + (screen.width - 60) + ',height=' + (screen.height - 60) + ',toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,resizable=yes,scrollbars=yes'); 
		} 

