
  
	//--------------------------  
	function windowPop(newUrl, title, toolbar, menubar, scroll, resize, width, height)
	//--------------------------
	{
		//window.open (newUrl,title,'history=no,toolbar='+toolbar+',location=0,status=0,menubar='+menubar+',scrollbars='+scroll+',resizable='+resize+',width='+width+',height='+height); 
	
		var sw = 800;
		var sh = 600;
		if (screen) 
		{
	   		sw = screen.availWidth;
	  		sh = screen.availHeight;
		}
		
		var pw = parseInt(width);
		var ph = parseInt(height);
		var lp = (sw-pw)/2;
  		var tp = (sh-ph)/2;
		
		window.open (newUrl,title,'history=no,toolbar='+toolbar+',location=0,status=0,menubar='+menubar+',scrollbars='+scroll+',resizable='+resize+',width='+width+',height='+height+', top=' + tp + ',left=' + lp); 
	
		//splashWin.blur();	// Hide while updating
		//splashWin.resizeTo(w, h);
		//splashWin.moveTo(l, t);
		
		//splashWin.focus();
	
	}
	
	//--------------------------
	function closeWindow()
	//--------------------------	
	{window.close(self);}
	
	//--------------------------
	function printWin()
	//--------------------------
	{if (self.print) self.print();}
	
	//--------------------------
	function launchWin(url, title) 
	//--------------------------
	{
		var w = window.screen.width-10;
		var h = window.screen.availHeight-30;
		var l = 0;
		var t = 0;

		var splashWin;
		splashWin = window.open(url, title, 'fullscreen=0,width='+w+',height='+h+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1' );

		splashWin.blur();	// Hide while updating
		//splashWin.resizeTo(w, h);
		//splashWin.moveTo(l, t);
	
		//splashWin.focus();
	}

	//--------------------------
	function ChangeCountry(objCheckbox)
	//--------------------------
	{
		if (objCheckbox.value == "0")
		{
			objCheckbox.form.Country.value = ""
			objCheckbox.form.Country.disabled = false;
			objCheckbox.form.Country.className = "text";
			objCheckbox.form.Country.onFocus = null;
		}
		else
		{
			objCheckbox.form.Country.value = "USA";
			objCheckbox.form.Country.disabled = true;
			objCheckbox.form.Country.className = "disabled text";
			objCheckbox.form.Country.onFocus = objCheckbox.form.Country.blur;
		}
	}

	//--------------------------
	function Wait(objButton)
	//--------------------------
	{
		setTimeout("ShowWait()", 700)
		objButton.blur()

		document.all['body'].style.cursor='wait';
		objButton.style.cursor='wait';
	
	}

	//--------------------------
	function ShowWait()
	//--------------------------
	{
		document.all['waiterror'].style.display='';
		document.all['IFrameWait'].style.display='';
	}
	
	//--------------------------	
	function right(e) //to trap right click button
	//--------------------------
	{
	//	var ip;
		
	//	if (ip != "public")
	//	{
	//		if (ip != "172.16.1.159")
	//		{
	//			if (isnn && (e.which == 3 || e.which == 2 ))
	//				return false;
	//			else if (isie && (event.button == 2 || event.button == 3))
	//				{
	//				alert("Sorry, you cannot right click.");
	//				return false;
	//				}
	//			return true;
	//		}
	//	}

	}
	
	//--------------------------
	function key(k)
	//--------------------------
	{
		if(isie) {
			if(event.keyCode==17 || event.keyCode==18 || event.keyCode==93) {
				alert("Sorry, you do not have permission to press this key.")
				return false;
			}
	}

	if(isnn){
		alert(event.keyCode)
		alert("Sorry, you do not have permission to press this key.")
		return false; }
	}
	
		var isnn,isie
		
		if(navigator.appName=='Microsoft Internet Explorer') //check the browser
		{  isie=true }
		
		if(navigator.appName=='Netscape')
		{  isnn=true }
		
		
		
		if (document.layers) window.captureEvents(Event.KEYPRESS);
		if (document.layers) window.captureEvents(Event.MOUSEDOWN);
		if (document.layers) window.captureEvents(Event.MOUSEUP);
		//document.onkeydown=key;
		document.onmousedown=right;
		document.onmouseup=right;
		window.document.layers=right;
		
	//--------------------------
	function over(objButton)
	//--------------------------
	{
		objButton.className = 'button over'
	}

	//--------------------------
	function down(objButton)
	//--------------------------
	{
		objButton.className = 'button down'
	}

	//--------------------------
	function out(objButton)
	//--------------------------
	{
		objButton.className = 'button out'
	}

