function LockSubmit(form) {
   var c = document.cookie;
   if (!form.billingsubmit.value){
      return true;
   }
   if (c.indexOf(document.location) > -1) {
      return false;
   } else {
      document.cookie = window.location.href + " from " + document.referrer + "; ; path=/;";
      return true;
   };
};

function UnlockSubmit(){
	var date = new Date();
	date.setTime(date.getTime()-86400000);
	var expires = "; expires="+date.toGMTString();
	document.cookie = window.location.href + " from " + document.referrer + "; expires="+date.toGMTString()+" ; path=/;";
};
