<!--
function isNumberKey(evt)
{
 var charCode = (evt.which) ? evt.which : event.keyCode
 if (charCode > 31 && (charCode < 48 || charCode > 57) && (charCode < 96 || charCode > 105) && charCode != 46 && charCode != 37 && charCode != 39)
	return false;

 return true;
}


function newWindow(e)
{
	var characterCode //literal character code will be stored in this variable
	
	if(e && e.which)
	{ //if which property of event object is supported (NN4)
		e = e
		characterCode = e.which //character code is contained in NN4's which property
	}
	else
	{
		e = event
		characterCode = e.keyCode //character code is contained in IE's keyCode property
	}
	
	if(characterCode == 13)
	{ //if generated character code is equal to ascii 13 (if enter key)
		if (checklength2() == true) 
		{
			document.reps_form.submit(MyNewWindow=window.open('http://www.snaponequipment.com/zipcode_finder/zipdetails_bychannel.asp','newwindow','width=361,height=650,status=no,toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no')); return false; //submit the form
		}
		return false
	}
	else
	{
		return true
	}
}

function newWindowByButton(e)
{
	if (checklength2() == true) 
		{
			document.reps_form.submit(MyNewWindow=window.open('http://www.snaponequipment.com/zipcode_finder/zipdetails_bychannel.asp','newwindow','width=361,height=650,status=no,toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no')); return false; //submit the form
		}
}


function checklength2()
{
	var zip = document.reps_form.zip.value
	if ((zip.length != 5) || (zip="")) 
	{
		return false;
	}
	else
	{
		return true;
	}
}


function checklength()
{
	var zip = document.reps_form.zip.value
		
	if ((zip.length != 5) || (zip="")) 
	{
		alert("Please enter a 5 digit numeric U.S. zipcode.");
		return false;
	}
	else
	{
		return true;
	}
}

function selectAll(id)
{
	document.getElementById(id).focus();
	document.getElementById(id).select();
}

<!--
function noRightClick()
{
	document.getElementById('scanalert').oncontextmenu=new Function("alert('Copying Prohibited by Law - HACKER SAFE is a Trademark of McAfee, Inc.'); return false;")
}
//-->
//-->
