<!--


function Validate_Destination()
{
	if (document.form.strFirst.value.length == 0)
	{
		alert('You must enter YOUR FIRST NAME to continue.');
		document.form.strFirst.focus();
		return(false);
	}
	if (document.form.strLast.value.length == 0)
	{
		alert('You must enter YOUR LAST NAME to continue.');
		document.form.strLast.focus();
		return(false);
	}
	if (document.form.strEmail.value.length == 0 || document.form.strEmail.value.indexOf(".") == -1 || document.form.strEmail.value.indexOf("@") == -1)
	{
		alert('You must enter A VALID E-MAIL ADDRESS containing "@" and "." to continue.');
		document.form.strEmail.focus();
		return(false);
	}
	if (document.form.password.value.length == 0)
	{
		alert('You must enter A PASSWORD to continue.');
		document.form.password.focus();
		return(false);
	}
	
    if (document.form.strAddress1.value.length == 0)
	{
		alert('You must enter YOUR ADDRESS to continue.');
		document.form.strAddress1.focus();
		return(false);
	}
	if (document.form.strCity.value.length == 0)
	{
		alert('You must enter YOUR CITY to continue.');
		document.form.strCity.focus();
		return(false);
	}
	if (document.form.strPostalCode.value.length == 0)
	{
		alert('You must enter YOUR ZIP CODE to continue.');
		document.form.strPostalCode.focus();
		return(false);
	}
	if (document.form.strPhone.value.length == 0)
	{
		alert('You must enter YOUR PHONE NUMBER to continue.');
		document.form.strPhone.focus();
		return(false);
	}
if (document.form.strShipFirst.value.length == 0)
	{
		alert('You must enter YOUR SHIPPING FIRST NAME to continue.');
		document.form.strShipFirst.focus();
		return(false);
	}
if (document.form.strShipLast.value.length == 0)
	{
		alert('You must enter YOUR SHIPPING LAST NAME to continue.');
		document.form.strShipLast.focus();
		return(false);
	}
if (document.form.strShipAddress.value.length == 0)
	{
		alert('You must enter YOUR SHIPPING ADDRESS to continue.');
		document.form.strShipAddress.focus();
		return(false);
	}
if (document.form.strShipCity.value.length == 0)
	{
		alert('You must enter YOUR SHIPPING CITY to continue.');
		document.form.strShipCity.focus();
		return(false);
	}
if (document.form.strShipPostalCode.value.length == 0)
	{
		alert('You must enter YOUR SHIPPING ZIP to continue.');
		document.form.strShipPostalCode.focus();
		return(false);
	}


	return (true);
} 


var strShipFirst = "";
var strShipLast = "";
var strShipAddress = "";
var strShipCity = "";
var strShipPostalCode = "";
var strShipState = "";
var strShipStateIndex = 0;
var strShipCountry = "";
var strShipCountryIndex = 0;

function InitSaveVariables(form) {
strShipFirst = form.strShipFirst.value;
strShipLast = form.strShipLast.value;
strShipAddress = form.strShipAddress.value;
strShipCity = form.strShipCity.value;
strShipPostalCode = form.strShipPostalCode.value;
strShipStateIndex = form.strShipState.selectedIndex;
strShipState = form.strShipState[strShipStateIndex].value;
strShipCountry = form.strShipCountry[strShipCountryIndex].value;
}

function ShipToBillPerson(form) {
if (form.copy.checked) {
InitSaveVariables(form);
form.strShipFirst.value = form.strFirst.value;
form.strShipLast.value = form.strLast.value;
form.strShipAddress.value = form.strAddress1.value;
form.strShipCity.value = form.strCity.value;
form.strShipPostalCode.value = form.strPostalCode.value;
form.strShipState.selectedIndex = form.strState.selectedIndex;
form.strShipCountry.selectedIndex = form.strCountry.selectedIndex;
}
else {
form.strShipFirst.value = strShipFirst;
form.strShipLast.value = strShipLast;
form.strShipAddress.value = strShipAddress;
form.strShipCity.value = strShipCity;
form.strShipPostalCode.value = strShipPostalCode;
form.strShipState.selectedIndex = strShipStateIndex;
form.strShipCountry.selectedIndex = strShipCountryIndex;
   }
}
function checkCapsLock( e ) {
	var myKeyCode=0;
	var myShiftKey=false;
	var myMsg='Caps Lock is On.\n\nPlease take off Caps Lock to proceed';

	// Internet Explorer 4+
	if ( document.all ) {
		myKeyCode=e.keyCode;
		myShiftKey=e.shiftKey;

	// Netscape 4
	} else if ( document.layers ) {
		myKeyCode=e.which;
		myShiftKey=( myKeyCode == 16 ) ? true : false;

	// Netscape 6
	} else if ( document.getElementById ) {
		myKeyCode=e.which;
		myShiftKey=( myKeyCode == 16 ) ? true : false;

	}

	// Upper case letters are seen without depressing the Shift key, therefore Caps Lock is on
	if ( ( myKeyCode >= 65 && myKeyCode <= 90 ) && !myShiftKey ) {
		alert( myMsg );

	// Lower case letters are seen while depressing the Shift key, therefore Caps Lock is on
	} else if ( ( myKeyCode >= 97 && myKeyCode <= 122 ) && myShiftKey ) {
		alert( myMsg );

	}
}
function displayPopup3(url, height, width) {
properties = "toolbar=1,location=0,scrollbars=1,height=" + height;
properties = properties + ",width=" + width;
properties = properties + ",left=50,top=50";
popupHandle = open(url, "Upload_Image", properties);

}

function setAction(formresidential){

if (formresidential.strCcType.value=="cc") {
 	cc.style.display	= "";
    check.style.display = "none";
}

if (formresidential.strCcType.value=="check") {
 	cc.style.display	= "none";
    check.style.display = "";
}


}



function Validate_Form()
{
	if (document.form.strContactPerson.value.length == 0)
	{
		alert('You must enter A CONTACT PERSON to continue.');
		document.form.strContactPerson.focus();
		return(false);
	}
	if (document.form.strPhoneNumber.value.length == 0)
	{
		alert('You must enter A PHONE NUMBER to continue.');
		document.form.strPhoneNumber.focus();
		return(false);
	}
	if (document.form.strEmailAddress.value.length == 0 || document.form.strEmailAddress.value.indexOf(".") == -1 || document.form.strEmailAddress.value.indexOf("@") == -1)
	{
		alert('You must enter A VALID E-MAIL ADDRESS containing "@" and "." to continue.');
		document.form.strEmailAddress.focus();
		return(false);
	}
	  if (document.form.strTypeofRequest.selectedIndex == 0) {
        alert('You must enter A REQUEST TYPE to continue.');
		document.form.strTypeofRequest.focus();
		return(false);
    }
	if (document.form.strTypeofMarketing.selectedIndex == 0) {
        alert('You must enter HOW YOU FOUND US to continue.');
		document.form.strTypeofMarketing.focus();
		return(false);
    }
	
	if (document.form.strRequest.value.length == 0)
	{
		alert('You must enter A REQUEST to continue.');
		document.form.strRequest.focus();
		return(false);
	}
	return (true);
} 




function Validate_Link()
{
	if (document.formlink.strContactPerson.value.length == 0)
	{
		alert('You must enter A CONTACT PERSON to continue.');
		document.formlink.strContactPerson.focus();
		return(false);
	}
	if (document.formlink.email.value.length == 0 || document.formlink.email.value.indexOf(".") == -1 || document.formlink.email.value.indexOf("@") == -1)
	{
		alert('You must enter A VALID E-MAIL ADDRESS containing "@" and "." to continue.');
		document.formlink.email.focus();
		return(false);
	}
	if (document.formlink.urllinkedat.value.length == 0)
	{
		alert('You must TELL US WHERE OUR LINK WILL BE FOUND to continue.');
		document.formlink.urllinkedat.focus();
		return(false);
	}
	if (document.formlink.urltolink.value.length == 0)
	{
		alert('You must TELL US WHAT LINK YOU WANT US TO ADD TO OUR SITE to continue.');
		document.formlink.urltolink.focus();
		return(false);
	}
	if (document.formlink.strRequest.value.length == 0)
	{
		alert('You must enter A REQUEST to continue.');
		document.formlink.strRequest.focus();
		return(false);
	}
	return (true);
} 


function Validate_PForm()
{

if ( ( document.pform.patientagree[0].checked == false )
    && ( document.pform.patientagree[1].checked == false ) )
    {
        alert ( "Please choose I AGREE OR I DISAGREE to continue" );
		document.pform.patientagree[0].style.background = "#FF0000";
		document.pform.patientagree[1].style.background = "#FF0000";
        document.pform.patientagree[0].focus();
		return(false);
    }
if ( ( document.pform.workingwith[0].checked == false )
    && ( document.pform.workingwith[1].checked == false ) )
    {
        alert ( "Please choose I AM OR I AM NOT to continue" );
		document.pform.workingwith[0].style.background = "#FF0000";
		document.pform.workingwith[1].style.background = "#FF0000";
        document.pform.workingwith[0].focus();
		return(false);
    }
if ( ( document.pform.patientagree2[0].checked == false )
    && ( document.pform.patientagree2[1].checked == false ) )
    {
        alert ( "Please choose I AGREE OR I DISAGREE to continue" );
		document.pform.patientagree2[0].style.background = "#FF0000";
		document.pform.patientagree2[1].style.background = "#FF0000";
        document.pform.patientagree2[0].focus();
		return(false);
    }
if (document.pform.name.value.length == 0)
	{
		alert('You must enter YOUR NAME to continue.');
		document.pform.name.style.background = "#FF0000";
		document.pform.name.focus();
		return(false);
	}
if (document.pform.email.value.length == 0 || document.pform.email.value.indexOf(".") == -1 || document.pform.email.value.indexOf("@") == -1)
	{
		alert('You must enter A VALID E-MAIL ADDRESS containing "@" and "." to continue.');
		document.pform.email.focus();
		return(false);
	}
	return (true);
}
//-->








































