
       // --- jumpPage
       function jumpPage(form) {
        var s=form.keyword.value+".asp";
        s = s.replace(" ","_");
        s = s.replace(" ","_");
        window.location.href =s;
        }
        

	function openwin(coupon,linkid,url){
	var dline='Coupon Code: '+ coupon+'\n \n Please enter the coupon code at the check out page';
	alert(dline );

	window.open(url);
		document.getElementById(linkid).innerHTML=coupon
	}

	function openSiteWin(Msg,linkid,url){
	var dline=Msg+'\n \n ';
	alert(dline );

	window.open(url);
		document.getElementById(linkid).innerHTML=Msg
	}
	
	function openwinnoturl(value,linkid){
	var dline='Correct value: '+ value+'\n \n ';
	alert(dline );
		document.getElementById(linkid).innerHTML=coupon
	}

       // ---
// Ensure that ESSENTIAL FIELDS have been filled in.
function CheckFields(pform) {

 // The fields are checked for blanks
  if ( pform.recordTemplate.value   == "" ||
       pform.endDate.value   == "" ||
       pform.reportName.value  == "" ||
       pform.startDate.value  == ""  ) {
     alert( "Data in essential fields missing.\nPlease ensure that all fields are filled in." );
     return false;
     }
}


