<!--
function storelocatorv2()
{
  var checkOK = "0123456789 ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  var txtZip = document.getElementById('zip');
  var chkRange = document.getElementById('chkRange');
  var chkRecord = document.getElementById('chkRecord');
  var txtRange = document.getElementById('range');
  var txtRecord = document.getElementById('record');
  var txtUID = document.getElementById('uid');
  
  checkStr = txtZip.value;
  var allValid = true;
  var validGroups = true;
  var decPoints = 0;
  var allNum = "";
  var range = "";
  var record = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    allNum += ch;
  }
  //if (!allValid || txtZip.value == "" || txtZip.value.length < 2)
  if (!allValid || txtZip.value == "")
  {
    //alert("Please enter at least 2-digit zip code.");
    alert("Please key in zip code.");
    txtZip.focus();
    return (false);
  }
  if (chkRange != null)
  {
	if (chkRange.checked == true)
	{
		range = "&range="+txtRange.selectedIndex;
	}
	else
	{
		range = "&range=-1";
	}
  }
  if (chkRecord != null)
  {
	if (chkRecord.checked == true)
	{
		record = "&record="+txtRecord.selectedIndex;
	}
	else
	{
		record = "&record=-1";
	}
  }
  //window.open('http://localhost/storelocatoradminv2/storelocatorclient.aspx?uid='+txtUID.value+'&zip='+txtZip.value+range+record,'ZIPCodeWorld','resizable=yes,scrollbars=yes,height=600,width=800,status=yes',false);
  var oWin = window.open('http://live.zipcodeworld.com/storelocatorclient.aspx?uid='+txtUID.value+'&zip='+txtZip.value+range+record,'ZIPCodeWorld','resizable=yes,scrollbars=yes,height=600,width=800,status=yes',false);
  if (oWin == null || typeof(oWin) == "undefined")
  {
		alert("Your popup blocker has blocked the Store Locator from opening");
  }
  return false;
}
function storelocator(theForm)
{
  var checkOK = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  var checkStr = theForm.zip.value;
  var allValid = true;
  var validGroups = true;
  var decPoints = 0;
  var allNum = "";
  var range = "";
  var record = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    allNum += ch;
  }
  //if (!allValid || theForm.zip.value == "" || theForm.zip.value.length < 2)
  if (!allValid || theForm.zip.value == "")
  {
    //alert("Please enter at least 2-digit zip code.");
    alert("Please key in zip code.");
    theForm.zip.focus();
    return (false);
  }
  if (theForm.chkRange != null)
  {
	if (theForm.chkRange.checked == true)
	{
		range = "&range="+theForm.range.selectedIndex;
	}
	else
	{
		range = "&range=-1";
	}
  }
  if (theForm.chkRecord != null)
  {
	if (theForm.chkRecord.checked == true)
	{
		record = "&record="+theForm.record.selectedIndex;
	}
	else
	{
		record = "&record=-1";
	}
  }
  window.open('http://live.zipcodeworld.com/storelocatorclient.aspx?uid='+theForm.uid.value+'&zip='+theForm.zip.value+range+record,'ZIPCodeWorld','resizable=yes,scrollbars=yes,height=600,width=800,status=yes',false);
  return false;
}
//-->