function popTOOLS1(url) {
	sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width=500,height=550,top=0,left=0');
	self.name = "mainWin";
	sealWin.focus();
}

function popTOOLSHigh(url) {
	sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width=500,height=800,top=0,left=0');
	self.name = "mainWin";
	sealWin.focus();
}

//function valCheckBox(){
//var chbx=document.forms(0).cbxShareInfo.checked;
//if (chbx) {return true;} else  
//  alert('You need to check at least one checkbox!');
// return false;
//}

//-- Pop up window: 800 x 600
function popLINK(url) {
	sealWin=window.open(url,"win",'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=800,height=600,top=0,left=0');
	self.name = "mainWin";
	sealWin.focus();	
}

//-- Pop up window: 600 x 450
function popMSG(url) {
	sealWin=window.open(url,"win",'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=600,height=450,top=0,left=0');
	self.name = "mainWin";
	sealWin.focus();	
}


	//Method opens a new popup window of the given URL
	function displayPopup(url,name,height,width,evnt)
	{
	//	alert(url);
			var properties;
			if (name == "dict")
			{
				properties = "toolbar=0,location=0,height=585,width=650,scrollbars=0";
				if(evnt != null) 
				{
					if(navigator.appName == "Microsoft Internet Explorer") 
					{
						//properties = properties+",left="+(evnt.screenX + 10)
						properties = properties+",left="+(65);
						properties = properties+",top="+(115);
						alert(properties);
					}
					else 
					{ // Navigator coordinates must be adjusted for scrolling
						properties = properties+",left="+(evnt.screenX - pageXOffset + 10);
						properties = properties+",top="+(evnt.screenY - pageYOffset + 10);
					}
				}
			}
			else if (name == "phr1" || name == "phr2")
			{
				properties = "toolbar=0,location=0,scrollbars=0,height=220,width=545";
				
				if(evnt != null) 
				{
				//alert(properties);
					if(navigator.appName == "Microsoft Internet Explorer") 
					{
						if (name == "phr1")
						{
							properties = properties+",left="+(36);
							properties = properties+",top="+(evnt.screenY - 280);
							//alert(properties);
						}
						else
						{
							properties = properties+",left="+(83);
							properties = properties+",top="+(evnt.screenY - 280);
						}
					}
					else 
					{ // Navigator coordinates must be adjusted for scrolling
						properties = properties+",left="+(evnt.screenX - pageXOffset + 10);
						properties = properties+",top="+(evnt.screenY - pageYOffset + 10);
					}
				}
			}
			else
			{
				properties = "toolbar=0,location=0,height="+height;
				properties = properties+",width="+width;
				if(evnt != null) 
				{
					if(navigator.appName == "Microsoft Internet Explorer") 
					{
						properties = properties+",left="+(evnt.screenX + 10);
						properties = properties+",top="+(evnt.screenY + 10);
						//alert("this:"+properties);
					}
					else 
					{ // Navigator coordinates must be adjusted for scrolling
						properties = properties+",left="+(evnt.screenX - pageXOffset + 10);
						properties = properties+",top="+(evnt.screenY - pageYOffset + 10);
					}
				}
			}
			
			popupHandle = open(url,name,properties);
		}
		//Call this method from the Parent page to close the popup on any event.		
		function closePopup() 
		{
			if(popupHandle != null && !popupHandle.closed) 
				popupHandle.close();
		}
		//Call Before opening the Window and it will assign the name.
		function SetText(name)
		{
			window.name = name;
		}

