<!-- Begin

var win1Open = null

var win2Open = null

function openPopUp(windowURL, windowName, windowWidth, windowHeight){

  var winHandle = window.open(windowURL,windowName,"toolbar=no,scrollbars=yes,resizable=yes,width=" + windowWidth + ",height=" + windowHeight)

  return winHandle

  }

function winClose(){    // close all open pop-up windows   

  if(win1Open != null) win1Open.close() 

  if(win2Open != null) win2Open.close()  



  }

function openPopUpWindow(){}  // does nothing but required by JavaScript & shows in status bar

function newWindow(url, windowWidth, windowHeight, scroll, resize){

	var h = windowHeight;
	var w = windowWidth;
	var disScroll, disResize;
	
	if(scroll=='bars')
		disScroll = 'yes';
	else
		disScroll = 'no';

	if(resize=='resize')
		disResize = 'yes';
	else
		disResize = 'no';

	//centered screen script
	if(screen.width){
	var winl = (screen.width-w)/2;
	var wint = (screen.height-h)/2;
	}else{winl = 0;wint =0;}
	if (winl < 0) winl = 0;
	if (wint < 0) wint = 0;
	var settings = 'height=' + h + ',';
	settings += 'width=' + w + ',';
	settings += 'top=' + wint + ',';
	settings += 'left=' + winl + ',';

	win = window.open(url , '' , settings + ', scrollbars=' + disScroll + ', menubars=no, toolbars=no, resizable=' + disResize);
	win.window.focus();
}


// End -->
