   var pup;
   var win_num=1;
	function confirm_delete(message, url){
            rc=confirm(message);
            if (rc==true)
               window.location=url;
            else
               return;   
    }
   function ShowPopup(URL,w,h,xpos,ypos){
      win_num=win_num+1;
      if (h==0){
         window.open(URL, win_num, 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=720,height=430,left = 250,top = 134');   
      }
      else{
         window.open(URL, win_num, 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width='+w+',height='+h+',left = '+xpos+',top = '+ypos);
      }
   }
   
   function ShowPopupWin(URL,w,h,xpos,ypos,win_name){
      win_num=win_num+1;
      if (h==0){
         window.open(URL, win_name, 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=720,height=430,left = 175,top = 134');   
      }
      else{
         window.open(URL, win_name, 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width='+w+',height='+h+',left = '+xpos+',top = '+ypos);
      }
   }

   function check_cancel() {
      window.close();   
   }
   
   function hello() {
      alert("Hello");
   }

function submitForm(cont) {
   document.tgs_form.cont.value=cont;
   document.tgs_form.submit();   
}

   function printStyle(page,query,status,keywords,date2) {
//      var header=confirm("Do you wish to print this page with your name and address header?\n\nChoosing Cancel will print the page without the header.");
//      if (header) {
//               ShowPopup(page+'?qprint=1&header=1&date_show='+date_set+'&date1='+date1+'&date2'+date2+'&'+query,800,600)
   //      ShowPopup(page+'?qprint=1&header=1&date_show='+date+'&date1='+date1+'&date2'+date2+'&'+query,800,600)
//      }
//      else {
//               ShowPopup(page+'?qprint=1&header=0&date_show='+date_set+'&date1='+date1+'&date2'+date2+'&'+query,800,600)
   //      ShowPopup(page+'?qprint=1&header=0&date_show='+date+'&date1='+date1+'&date2'+date2+'&'+query,800,600)
//      }
               ShowPopup(page+'?qprint=1&header=0&status='+status+'&keywords='+keywords+'&date2'+date2+'&'+query,800,600)
   }

   function QuickPrint() {
      bV = parseInt(navigator.appVersion);
      if (bV >= 4) {
         window.print();
      }
   }


			function calc_tt() {
				document.new_tt_form.tee_times_count.value = Math.round((parseInt(document.new_tt_form.icount.value))/document.new_tt_form.pairings_size.value);
			}

//  End -->