
function onImgOver(imgId, imgOverSrc)
{
	document.images[imgId].src = imgOverSrc;
}

function onImgOut(imgId, imgOverSrc)
{
	document.images[imgId].src = imgOverSrc;
}

function onButOver(imgId, imgOverSrc)
{
	document.getElementById(imgId).src = imgOverSrc;
}

function onButOut(imgId, imgOutSrc)
{
	document.getElementById(imgId).src = imgOutSrc;
}

function popUpWindow(URL,windowname,zheight,zwidth) {
popWin = window.open('', windowname, 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=' + zwidth + ',height=' + zheight + ',left = 0,top = 0');
//popWin.moveTo((screen.availwidth-zwidth)/2,(screen.availheight-zheight)/2);
popWin.location=(URL);
popWin.focus();
}

function submit_form(vals)
{
   //Submit the form to the next page passing along the hidden fields
   if(document.getElementById){
      document.getElementById(vals).submit();
   }else{
      document.forms[vals].submit();
   }//end if
}

function openPop(pURL,pName,pWidth,pHeight){
   var winWidth = 420;
   var winHeight = 325;
   var winName = "newWin";
   if (pWidth > 0){
      winWidth = pWidth;
   }//end if
   if (pHeight > 0){
      winHeight = pHeight;
   }//end if
   if (pName.length > 0){
      winName = pName;
   }//end if
   var newWin = window.open(pURL,winName,'width=' + winWidth + ',height=' + winHeight + ',status=no,toolbar=no,scrollbars=yes,resizable=yes,left=1,top=1')
   if (window.focus){ 
      newWin.focus()
   }//end if
}//end function