               function confirm_go(msg,newurl)
               {
                   if(confirm(msg) && newurl) {
                     location = newurl;
                   }
               }

               function confirm_cancel(msg,newurl)
               {
		   if(!newurl) {
			newurl = msg;
		   }
                   if(confirm('Cancel This Order?') && newurl) {
                     location = newurl;
                   }
               }

	       var formSubmitted = false;
	       function submitForm(form)
	       {
			if(!formSubmitted) {
				formSubmitted = true;
				return true;
			}
			/* this prevents double clicks */
			return false; 
	       }

