﻿// JScript File

function displayPopup(url,name,height,width,evnt)
		{
		
			var properties = "toolbar=0,titlebar=0,location=0,height="+height			 
				properties = properties+",width="+width
							
			var leftprop, topprop, screenX, screenY, cursorX, cursorY, padAmt
			
			

			if(navigator.appName == "Microsoft Internet Explorer")
			{
				screenY = document.body.offsetHeight
				screenX = window.screen.availWidth				
			}
			
			else
			{
				screenY = screen.height;
				screenX = screen.width;				
			}				
				leftvar = (screenX - width) / 2
				rightvar = (screenY - height) / 2			
					
				if(navigator.appName == "Microsoft Internet Explorer")
				{
					leftprop = leftvar
					topprop = rightvar					
				}
				else
				{ // adjust Netscape coordinates for scrolling
					leftprop = (leftvar - pageXOffset)
					topprop = (rightvar - pageYOffset)
				}		

			if(evnt != null)
			{
				properties = properties+",left="+leftprop
////			properties = properties+",top="+topprop
                properties = properties+",top=100";
				
				
			}					
			return	popupHandle = open(url,name,properties)
		}
		
	