// Logo Image Hover
if (document.images)
{
    pic1on= new Image(61,31);
    pic1on.src="/image/HomeButtonOn.jpg";  

    pic1off= new Image(61,31);
    pic1off.src="/image/HomeButtonOff.jpg";
	
	pic1there= new Image(61,31);
	pic1there.src="/image/HomeButtonThere.jpg";
    
    pic2on= new Image(113,31);
    pic2on.src="/image/NewPatientsButtonOn.jpg";  

    pic2off= new Image(113,31);
    pic2off.src="/image/NewPatientsButtonOff.jpg";
	
	pic2there= new Image(113,31);
	pic2there.src="/image/NewPatientsButtonThere.jpg";
    
    pic3on= new Image(148,31);
    pic3on.src="/image/PatientEducationButtonOn.jpg";  

    pic3off= new Image(148,31);
    pic3off.src="/image/PatientEducationButtonOff.jpg";
	
	pic3there= new Image(148,31);
	pic3there.src="/image/PatientEducationButtonThere.jpg";
    
    pic4on= new Image(85,31);
    pic4on.src="/image/AboutUsButtonOn.jpg";  

    pic4off= new Image(85,31);
    pic4off.src="/image/AboutUsButtonOff.jpg";
	
	pic4there= new Image(85,31);
	pic4there.src="/image/AboutUsButtonThere.jpg";
    
    pic5on= new Image(100,31);
    pic5on.src="/image/ContactUsButtonOn.jpg";  

    pic5off= new Image(100,31);
    pic5off.src="/image/ContactUsButtonOff.jpg";
	
	pic5there= new Image(100,31);
	pic5there.src="/image/ContactUsButtonThere.jpg";
    
    pic6on= new Image(100,31);
    pic6on.src="/image/PrintItButtonOn.png";  

    pic6off= new Image(100,31);
    pic6off.src="/image/PrintItButtonOff.png";
	
	pic7on= new Image(100, 31);
	pic7on.src="/image/EmailItButtonOn.png";
	
	pic7off= new Image(100, 31);
	pic7off.src="/image/EmailItButtonOff.png";
	
	pic8on= new Image(330, 256);
	pic8on.src="/image/NewPatientAdOn.png";
	
	pic8off= new Image(330, 256);
	pic8off.src="/image/NewPatientAdOff.png";
	
	pic9on= new Image(110, 31);
	pic9on.src="/image/PayYourBillButtonOn.jpg";
	
	pic9off= new Image(110, 31);
	pic9off.src="/image/PayYourBillButtonOff.jpg";
}

function lightup(imgName)
{
    if (document.images)
    {
        imgOn=eval(imgName + "on.src");
        document[imgName].src= imgOn;
    }
}

function turnoff(imgName)
{
    if (document.images)
    {
        imgOff=eval(imgName + "off.src");
        document[imgName].src= imgOff;
    }
}


// Search Validation
function SearchValidate()
{
    if (document.getElementById("Search").value.length <= 2)
	{
		alert("Search Selection - Please provide a valid entry");
		return false;
	}
	else
	{
		return true;
	}
}

// Zip Validation
function ZipValidate()
{
    if (document.getElementById("Zip").value.length <= 2)
	{
		alert("Zip Selection - Please provide a valid entry");
		return false;
	}
	else
	{
		return true;
	}
}

// Full Payment Form Validation
function PaymentValidate()
{
    	if (document.getElementById("amount").value.length <= 1)
	{
		alert("Amount - Please provide a valid entry");
		return false;
	}
	else if (document.getElementById("comment1").value.length <= 1)
	{
		alert("Patient Name - Please provide a valid entry");
		return false;
	}
	else if (document.getElementById("comment2").value.length <= 1)
	{
		alert("Patient Date of Birth - Please provide a valid entry");
		return false;
	}
	else if (document.getElementById("name").value.length <= 1)
	{
		alert("Name - Please provide a valid entry");
		return false;
	}
	else if (document.getElementById("address").value.length <= 1)
	{
		alert("Address - Please provide a valid entry");
		return false;
	}
	else if (document.getElementById("city").value.length <= 1)
	{
		alert("City - Please provide a valid entry");
		return false;
	}
	else if (document.getElementById("state").value.length <= 1)
	{
		alert("State - Please provide a valid entry");
		return false;
	}
	else if (document.getElementById("zip").value.length <= 1)
	{
		alert("Zip - Please provide a valid entry");
		return false;
	}
	else if (document.getElementById("phone").value.length <= 1)
	{
		alert("Phone - Please provide a valid entry");
		return false;
	}
	else if (document.getElementById("email").value.length <= 1)
	{
		alert("Email - Please provide a valid entry");
		return false;
	}
	else if (document.getElementById("cardnum").value.length <= 1)
	{
		alert("Credit Card Number - Please provide a valid entry");
		return false;
	}
	else if (document.getElementById("expdate").value.length <= 1)
	{
		alert("Expiration Date - Please provide a valid entry");
		return false;
	}
	else if (document.getElementById("csc").value.length <= 1)
	{
		alert("CSC Code - Please provide a valid entry");
		return false;
	}
	else
	{
		return true;
	}
}


// Form Input Clear - All
function RemoveSearch()
{
    document.SearchForm.Search.value = "";
}


// Leaving Site Alert
//function Leaving(address)
//{
//    var r = confirm("You are now leaving Allergy, Asthma and Sinus Center's web site and are going to a web site that is not operated by our company. Allergy, Asthma and Sinus Center is not responsible for the content or availability of linked sites. Please be advised that Allergy, Asthma and Sinus Center does not represent either the third party or you, the customer, if you enter into a transaction. Further, the privacy and security policies of the linked site may differ from those practiced by Allergy, Asthma and Sinus Center.");

//    if (r == true)
//   {
//	window.open(address);
//    }
//    else
//    {
//	alert("You have chosen not to leave Allergy, Asthma and Sinus Center's web site.");
//    }
//}
