function VerifyCheckBox(checkBoxElement)
{
	if (checkBoxElement.checked)	checkBoxElement.value = 'true';
	else checkBoxElement.value = 'false';
}

function ValidateDataContact(theForm)
{
	if (theForm.contactDate.value != "")
	{		
		return (false);
	}
	
	if ((theForm.ScheduleConsultation.checked==false) && (theForm.VirtualConsultation.checked==false) && 
	    (theForm.CallBackbyPatient.checked==false) && (theForm.AdditionalInformationbyEmail.checked==false) &&
	    (theForm.MailInformation.checked==false))
	{
		alert('Please, select would you like ...');
		theForm.ScheduleConsultation.focus();
		return (false);
	}
	
	if (theForm.Name.value == "")
	{
		alert('Please, enter your full name.');
		theForm.Name.focus();
		return (false);
	}

	if (theForm.EmailAddress.value == "")
	{
		alert('Please, enter your email.');
		theForm.EmailAddress.focus();
		return (false);
	}

	if (theForm.StreetAddress.value == "")
	{
		alert('Please, enter your address.');
		theForm.StreetAddress.focus();
		return (false);
	}
	
	if (theForm.City.value == "")
	{
		alert('Please, enter your city.');
		theForm.City.focus();
		return (false);
	}
	
	if (theForm.State.value == "")
	{
		alert('Please, choose your state.');
		theForm.State.focus();
		return (false);
	}

	if (theForm.Zip.value == "")
	{
		alert('Please, choose your zip.');
		theForm.Zip.focus();
		return (false);
	}
	
	if (theForm.HomePhone.value == "")
	{
		alert('Please, enter your home phone.');
		theForm.HomePhone.focus();
		return (false);
	}
	
	if (theForm.Locate.value == "")
	{
		alert('Please, enter the locate.');
		theForm.Locate.focus();
		return (false);
	}
	
	CheckValuesContact(theForm);

	if (theForm.Facelift.checked)
	{		
		return (true);
	}
	if (theForm.IPLPhotorejuvenation.checked)
	{		
		return (true);
	}
	if (theForm.Rhinoplasty.checked)
	{
		return (true);
	}
	if (theForm.ForeheadLift.checked)
	{
		return (true);
	}
	if (theForm.EyelidSurgery.checked)
	{
		return (true);
	}
	if (theForm.Botox.checked)
	{
		return (true);
	}
	if (theForm.CheekChinImplants.checked)
	{
		return (true);
	}
	if (theForm.LipAugmentation.checked)
	{		
		return (true);
	}
	if (theForm.LaserHairRemoval.checked)
	{
		return (true);
	}
	if (theForm.ChemicalLaserPeels.checked)
	{
		return (true);
	}
	if (theForm.Microdermabrasion.checked)
	{
		return (true);
	}
	if (theForm.RosaceaSkinDamage.checked)
	{
		return (true);
	}				

	alert('Please, select a procedure.');
	return (false);
}

function CheckValuesContact(theForm)
{
	if (theForm.Facelift.checked)
	{
		theForm.Facelift.value = 'true';
	}
	else
	{
		theForm.Facelift.value = 'false';
	}
	
	if (theForm.IPLPhotorejuvenation.checked)
	{		
		theForm.IPLPhotorejuvenation.value = 'true';
	}
	else
	{
		theForm.IPLPhotorejuvenation.value = 'false';
	}
	
	if (theForm.Rhinoplasty.checked)
	{
		theForm.Rhinoplasty.value = 'true';
	}
	else
	{
		theForm.Rhinoplasty.value = 'false';
	}
	
	if (theForm.ForeheadLift.checked)
	{
		theForm.ForeheadLift.value = 'true';
	}
	else
	{
		theForm.ForeheadLift.value = 'false';
	}	
	
	if (theForm.EyelidSurgery.checked)
	{
		theForm.EyelidSurgery.value = 'true';
	}
	else
	{
		theForm.EyelidSurgery.value = 'false';
	}

	
	if (theForm.Botox.checked)
	{
		theForm.Botox.value = 'true';
	}
	else
	{
		theForm.Botox.value = 'false';
	}
	
	if (theForm.CheekChinImplants.checked)
	{
		theForm.CheekChinImplants.value = 'true';
	}
	else
	{
		theForm.CheekChinImplants.value = 'false';
	}
	
	if (theForm.LipAugmentation.checked)
	{		
		theForm.LipAugmentation.value = 'true';
	}
	else
	{
		theForm.LipAugmentation.value = 'false';
	}
	
	if (theForm.LaserHairRemoval.checked)
	{
		theForm.LaserHairRemoval.value = 'true';
	}
	else
	{
		theForm.LaserHairRemoval.value = 'true';
	}
	
	if (theForm.ChemicalLaserPeels.checked)
	{
		theForm.ChemicalLaserPeels.value = 'true';
	}
	else
	{
		theForm.ChemicalLaserPeels.value = 'false';
	}
	
	if (theForm.Microdermabrasion.checked)
	{
		theForm.Microdermabrasion.value = 'true';
	}
	else
	{
		theForm.Microdermabrasion.value = 'false';
	}
	
	if (theForm.RosaceaSkinDamage.checked)
	{
		theForm.RosaceaSkinDamage.value = 'true';
	}	
	else
	{
		theForm.RosaceaSkinDamage.value = 'false';
	}
}
