
function longPopUp( page, width, height, top, left ) { 
 var yes		= 1; 
 var no		= 0; 
 var menubar     = no;  // The File, Edit, View Menus 
 var scrollbars  = yes; // Horizontal and vertical scrollbars 
 var locationbar = no;  // The location box with the site URL 
 var directories = no;  // the "What's New", "What Cool" links 
 var resizable   = no;  // Can the window be resized? 
 var statusbar   = no;  // Status bar (with "Document: Done") 
 var toolbar     = no;  // Back, Forward, Home, Stop toolbar 
 
features = "" + 
	"width=" + width + "," + 
	"height=" + height + "," + 
	"top=" + top + "," + 
	"left=" + left + ""; 
features += "" + 
	(menubar ? ",menubars" : "") + 
	(scrollbars ? ",scrollbars" : "") + 
	(locationbar ? ",location" : "") + 
	(directories ? ",directories" : "") + 
	(resizable ? ",resizable" : "") + 
	(statusbar ? ",status" : "") + 
	(toolbar ? ",toolbar" : ""); 
 
window.open( page, 'fullPopup', features ); 
} 

function shortPopUp( url, name, width, height, scrollbars ) { 
 var top  = "50"; 
 var left = "50"; 
 
 if( scrollbars == null ) scrollbars = "0"; 
 
 str  = ""; 
 str += "resizable=1,titlebar=0,menubar=0,"; 
 str += "toolbar=0,location=0,directories=0,status=0,"; 
 str += "scrollbars=" + scrollbars + ","; 
 str += "width=" + width + ","; 
 str += "height=" + height + ","; 
 str += "top=" + top + ","; 
 str += "left=" + left; 
 
window.open( url, name, str ); 
} 
 



