function IsNumeric(strString)
{
	var strValidChars = "0123456789";
	var strChar;
	var blnResult = true;
	
	for (i = 0; i < strString.length && blnResult == true; i++)
	{
		strChar = strString.charAt(i);
		if (strValidChars.indexOf(strChar) == -1)
		{
			blnResult = false;
		}
	}
	return blnResult;
}


function gotoquicklink(Obj){	if(Obj.options[Obj.selectedIndex].value!=1) eval("document.location='"+Obj.options[Obj.selectedIndex].value+"'");}

function LocatorValidation()
{
	if (document.frmLocator.loc_zip.value == "")
	{
		if (document.frmLocator.loc_city.value == "" || document.frmLocator.loc_state.value == "")
		{
			alert("You must enter a value for City AND select a State or just enter a Zip Code!");
			document.frmLocator.loc_city.focus();
			return false;
		}
	}	
	if (document.frmLocator.loc_zip.value != "" && IsNumeric(document.frmLocator.loc_zip.value) == false) 
	{
		alert("Zipcode must be a numeric value!");
		document.frmLocator.loc_zip.focus();
		return false;
	}
	return true;
}

function KnowWhereComValidation()
{
	if (document.frmLocator.place[0].value == "" && document.frmLocator.place[1].value == "" && document.frmLocator.place[2].value == "" && document.frmLocator.region.value == "") 
	{
		alert("Enter City or State or Zipcode or Area Code to locate a store!");
		document.frmLocator.place[0].focus();
		return false;
	}
	return true;
}

function AddFavorite(){
	if ((navigator.appName == 'Microsoft Internet Explorer') && (parseInt(navigator.appVersion) >= 4)) {
		window.external.AddFavorite(document.URL,document.title);
	}else{
		alert('Since you are using Netscape please hit (CTRL-D) to add this page to your Bookmarks')
	}
}





