// getzip = checkzip.js JavaScript by T. Abracadabra 03/27/07
// Property of AITechSolutions.net. All rights reserved.
// Function that asks the user to enter a zip code, compares that
// to the values in the ziplist array and displays the apropriate
// dialog box requesting user to select the next course of action

function getzip ()

{
var x
zipok = 0
var myzip = prompt("Please enter your zip code to find out if onsite service is available in your area." + '\n' + "To ensure your security, your entry will NOT be sent over the Internet.","12345")

ziplist = new Array(18041,18056,18070,18073,18074,18076,18084,18979,19435,19457,19464,19465,19472,19492,19503,19504,19505,19518,19519,19525,19535,19542,19545,19547,19548,19512);

	for (x in ziplist)
	{
	if (myzip == ziplist[x] )
  	{zipok = 1
  	{break} }
	}
if (zipok == 1)
	{var r=confirm("You are in a zone we service!" + '\n' + '\n' + "If you want to make a service request click OK to display the request form." + '\n' + "Follow the instructions at the top of the page." + '\n\n' + "If you do not want to submit a request at this time click Cancel.")
    if (r==true)
    {window.open("http://www.aitechsolutions.net/ContactAITechSMain.shtml","","status = 0,resizeable = 1,dependent = 1,scrollbars = 1")
   }
  }
	else
	{alert('Sorry, Onsite Service is not currently available in your area')}
}