// ****** opens link in popup window
function createWindow(url) { 
		topL=10;
		leftL=10;
		width=780;
		height=420;    
		toolbar=1;      
		scrollbar=1;      
  wName='popUp';
		width = (arguments.length>1)?arguments[1]:width; // option to pass in width
		height = (arguments.length>2)?arguments[2]:height; // option to pass in height    
	 toolbar = (arguments.length>3)?arguments[3]:toolbar; // option to turn toolbar off
	 scrollbar = (arguments.length>4)?arguments[4]:scrollbar; // option to turn scrollbar off
  wName = (arguments.length>5)?arguments[5]:wName; // option to pass in window name     
  
		var str="toolbar="+ toolbar +",location=0,directories=0,status=0,menubar=0,scrollbars="+ scrollbar +",width="+ width +",height="+ height +",screenX="+ leftL +",screenY="+ topL +",left="+ leftL +",top="+ topL +",resizable=1";
  var Pwin = window.open(url,wName,str,true)
  Pwin.focus();
}

// Video popup
/*
Original: Eric King (eric_andrew_king@hotmail.com <mailto:eric_andrew_king@hotmail.com>)
Web Site: <http://redrival.com/eak/>
This script and many more are available free online at
The JavaScript Source!! <http://javascript.internet.com>
Begin
*/
function NewWindow(mypage, myname, w, h, scroll) {
  var winl = (screen.width - w) / 2;
  var wint = (screen.height - h) / 2;
  winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
  win = window.open(mypage, myname, winprops)
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
// End

