
/****************************************************************
pop-up window functionality
*****************************************************************/
window.onerror=null;
var win = null;

function newWindow(mypage, myname, w, h, scroll) {
closePopWin();
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',noresize';
win = window.open(mypage, myname, winprops);
}

function closePopWin() {
     if(win != null) {
          if(!win.closed) {
              win.close();
              win = null;
          } else {
              win = null;
          }
     }
}
/****************************************************************
pop-up window functionality
*****************************************************************/




/****************************************************************
mouseover functionality
*****************************************************************/	

function imghighlight(whichimg) {
	var imgsrc = new String(whichimg.src);
	imgsrc = imgsrc.replace(new RegExp('_off\.','g'),'_on\.');
	whichimg.src = imgsrc;
}

function imgnohighlight(whichimg) {
	var imgsrc = new String(whichimg.src);
	imgsrc = imgsrc.replace(new RegExp('_on\.','g'),'_off\.');
	whichimg.src = imgsrc;
}
/****************************************************************
mouseover functionality
*****************************************************************/	