function PopWin(theURL,winName,features,windowx,windowy,centre) {

  if (centre == "centre") {
	var availx;
	var availy;
    var posx;
    var posy;
	availx = screen.availWidth;
	availy = screen.availHeight;
    posx = (availx - windowx)/2;
    posy = (availy - windowy)/2;
    window.open(theURL,winName,features+',width='+windowx+',height='+windowy+',left='+posx+',top='+posy);
  }

  else {
    window.open(theURL,winName,features+',width='+windowx+',height='+windowy+',left=25,top=25');
  }
}

function PrintWin() {
	alert ("For optimum printing, please first set your\npage margins to their smallest size in page setup.\n\nClick OK to continue.");
	print();
}


function rise() {
  this.focus();
} 


function getParent(theURL) {
this.blur();
self.opener.location=theURL;
}

function MenuJump(targ,selObj,restore){
UniPop(selObj.options[selObj.selectedIndex].value,targ,'scrollbars=yes,resizable=yes,toolbar=yes,status=yes,menubar=yes,location=yes,directories=yes','760','400','nocentre')
  if (restore) selObj.selectedIndex=0;
}

function getURL (theURL) {
	window.location = theURL;
}

