function ticketcheck(){
 window.open('ticketcheck.php','tickWin','width=300,height=100');
}

function watercalccheck(){
 errText='';
 for(i=0;j=document.getElementById('wateradjustment'+i);i++){
  if(j.value!=''){
   if(!j.value.match(/[0-9\.]* ?x ?[0-9\.]+/)){
    errText+="the entry '"+j.value+"' is not valid\n";
   }
  }
 }
 if(errText=='')return true;
 alert(errText);
 return false;
}
