<!-- Start of Local Form Script include -->

function KeyPress() {
if (window.event.keyCode == 13)
{
	window.event.keyCode =0;
}
}

/////////////////////////////////////
// MOUSEOVER FUNCTIONS
////////////////////////////////////

// Preload the mouseover images

if (document.images) {
  var contact_on = new Image();
  contact_on.src = "images/contact_on.gif";
  var contact_off = new Image();
  contact_off.src = "images/contact_off.gif";

  var faq_on = new Image();
  faq_on.src = "images/faq_on.gif";
  var faq_off = new Image();
  faq_off.src = "images/faq_off.gif";
 
  var help_who_on = new Image();
  help_who_on.src = "images/help_on.gif";
  var help_who_off = new Image();
  help_who_off.src = "images/help_off.gif";
  
  var help_where_on = new Image();
  help_where_on.src = "images/help_on.gif";
  var help_where_off = new Image();
  help_where_off.src = "images/help_off.gif";  

  var help_notes_on = new Image();
  help_notes_on.src = "images/help_on.gif";
  var help_notes_off = new Image();
  help_notes_off.src = "images/help_off.gif";  
        
  var print_on = new Image();
  print_on.src = "images/print_on.gif";
  var print_off = new Image();
  print_off.src = "images/print_off.gif";    

  var btn_submit_on = new Image();
  btn_submit_on.src = "images/btn_submit_on.gif";
  var btn_submit_off = new Image();
  btn_submit_off.src = "images/btn_submit_off.gif";

  var btn_continue_on = new Image();
  btn_continue_on.src = "images/btn_continue_on.gif";
  var btn_continue_off = new Image();
  btn_continue_off.src = "images/btn_continue_off.gif";    }


function Form_Validator(theForm)
{
  if (theForm.tagnumber.value == "")
  {
    alert("Please enter a value for the \"Ticket Number\" field.");
    theForm.tagnumber.focus();
    return (false);
  }
  if (regExpIsValid(theForm.tagnumber.value) == false)
  {
    alert("Please enter only numbers for the \"Ticket Number\" field.");
    theForm.tagnumber.focus();
    return (false);
  }
  if (theForm.tagnumber.value < 10000000)
  {
    alert("Ticket must be greater than 10000000.");
    theForm.tagnumber.focus();
    return (false);
  }
  if (theForm.tagnumber.value > 9999999999999999)
  {
    alert("Ticket must be less than 9999999999999999.");
    theForm.tagnumber.focus();
    return (false);
  }
  var checkDigit = parseInt(theForm.tagnumber.value.charAt(theForm.tagnumber.value.length-1));
  var modulusValue = parseInt(theForm.tagnumber.value.substring(0,theForm.tagnumber.value.length-1))%7;
  if (modulusValue != checkDigit)
  {
    alert("Invalid ticket number. Confirm ticket number and re-enter");
    theForm.tagnumber.focus();
    return (false);
  }

  return (true);
}

function regExpIsValid(text)
{
	var myRegExp = /[^\d]/i;
	return !(myRegExp.test(text));
}


<!-- end of Local Form Script include -->

<!-- start of Global Forms Script include -->


/////////////////////////////////////
// MOUSEOVER FUNCTIONS
////////////////////////////////////

// make image active 
//	(ie. mouse is over it)
function fact(imgName) {
	if (document.images) {
		document[imgName].src = eval(imgName + "_on.src");
		} 
	return true; 
}

// make image inactive 
// (ie.default state, mouse is not over it)
function finact(imgName) {
	if (document.images) {
	document[imgName].src = eval(imgName + "_off.src");
	} 
	return true; 
}



/////////////////////////////////////
// UTILITY FUNCTIONS
////////////////////////////////////

function getRadioValue(radObj) {
	var val = null;

	for (var i=0; i<radObj.length; i++) {
		if (radObj[i].checked) {
			val = radObj[i].value;
			break;
		}
	}
	return val;
}

function dollarFormat(amount) {
    amount -= 0;
    amount = (Math.round(amount*100))/100;
    return (amount == Math.floor(amount)) ? amount + '.00' : (  (amount*10 == Math.floor(amount*10)) ? amount + '0' : amount);
}

function launchHelp(anchor) {
	popupWin = window.open('help.asp#' + anchor, 'help',
  	'scrollbars,resizable,width=350,height=500,left=200,top=50');
}

<!-- end of Global Forms Script include -->