function checkphotoform(objForm) {
	if (objForm.name.value == '') {
		alert('Please enter your name.');
		objForm.name.focus();
		return false;
	}	
	if (objForm.email.value == '') {
		alert('Please enter your email address.');
		objForm.email.focus();
		return false;
	}	
	if (!isEmail(objForm.email.value)) {
		alert('Please enter a valid email address.');
		objForm.email.value = ""
		objForm.email.focus();
		return false;
	}		
	if (objForm.bmonth.value == '') {
		alert('Please select the month of your birthday.');
		objForm.bmonth.focus();
		return false;
	}		
	if (objForm.bday.value == '') {
		alert('Please select the day of your birthday.');
		objForm.bday.focus();
		return false;
	}		
	if (objForm.byear.value == '') {
		alert('Please enter the year of your birthday.');
		objForm.byear.focus();
		return false;
	}	
	var dtbirthday = objForm.bmonth.value + '/' + objForm.bday.value + '/' + objForm.byear.value;
	if (dateDiff('d', dtbirthday, dtToday) / 365 < 21) {
		alert('Sorry, you must be at least 21 years to view this page.');
		objForm.byear.focus();
		return false;		
	}
	return true;
}

function checkphotoform2(objForm) {
	if (objForm.name.value == '') {
		alert('Please enter your name.');
		objForm.name.focus();
		return false;
	}	
	if (objForm.email.value == '') {
		alert('Please enter your email address.');
		objForm.email.focus();
		return false;
	}	
	if (!isEmail(objForm.email.value)) {
		alert('Please enter a valid email address.');
		objForm.email.value = ""
		objForm.email.focus();
		return false;
	}
	if (objForm.zip.value == '') {
		alert('Please enter your zip code.');
		objForm.zip.focus();
		return false;
	}				
	if (objForm.bmonth.value == '') {
		alert('Please select the month of your birthday.');
		objForm.bmonth.focus();
		return false;
	}		
	if (objForm.bday.value == '') {
		alert('Please select the day of your birthday.');
		objForm.bday.focus();
		return false;
	}		
	if (objForm.byear.value == '') {
		alert('Please enter the year of your birthday.');
		objForm.byear.focus();
		return false;
	}
	
	var dtbirthday = objForm.bmonth.value + '/' + objForm.bday.value + '/' + objForm.byear.value;
	if (dateDiff('d', dtbirthday, dtToday) / 365 < 21) {
		alert('Sorry, you must be at least 21 years to view this page.');
		objForm.byear.focus();
		return false;		
	}	
	return true;
}

function checkcs(objForm) {
	var dtbirthday = objForm.bmonth.value + '/' + objForm.bday.value + '/' + objForm.byear.value;

	
	if (objForm.bmonth.value == '') {
		alert('Please select the month of your birthday.');
		objForm.bmonth.focus();
		return false;
	}		
	if (objForm.bday.value == '') {
		alert('Please select the day of your birthday.');
		objForm.bday.focus();
		return false;
	}		
	if (objForm.byear.value == '') {
		alert('Please enter the year of your birthday.');
		objForm.byear.focus();
		return false;
	}	
	if (dateDiff('d', dtbirthday, dtToday) / 365 < 21) {
		alert('Sorry, you must be at least 21 years to view this page.');
		objForm.byear.focus();
		return false;		
	}		
	return true;	
}

function checknews(objForm) {
	if (objForm.name.value == '') {
		alert('Please enter your name.');
		objForm.name.focus();
		return false;
	}	
	if (objForm.email.value == '') {
		alert('Please enter your email address.');
		objForm.email.focus();
		return false;
	}	
	if (!isEmail(objForm.email.value)) {
		alert('Please enter a valid email address.');
		objForm.email.value = "";
		objForm.email.focus();
		return false;
	}			
	if (objForm.zip.value == '') {
		alert('Please enter your zip code.');
		objForm.zip.focus();
		return false;
	}		
	if (objForm.bmonth.value == '') {
		alert('Please select the month of your birthday.');
		objForm.bmonth.focus();
		return false;
	}		
	if (objForm.bday.value == '') {
		alert('Please select the day of your birthday.');
		objForm.bday.focus();
		return false;
	}		
	if (objForm.byear.value == '') {
		alert('Please enter the year of your birthday.');
		objForm.byear.focus();
		return false;
	}
	var dtbirthday = objForm.bmonth.value + '/' + objForm.bday.value + '/' + objForm.byear.value;
	if (dateDiff('d', dtbirthday, dtToday) / 365 < 21) {
		alert('Sorry, you must be at least 21 years to view this page.');
		objForm.byear.focus();
		return false;		
	}	
	return true;	
}


function checkphotoemail(objForm) {
	if (objForm.name.value == '') {
		alert('Please enter your name.');
		objForm.name.focus();
		return false;
	}	
	if (objForm.email.value == '') {
		alert('Please enter your email address.');
		objForm.email.focus();
		return false;
	}	
	if (!isEmail(objForm.email.value)) {
		alert('Please enter a valid email address.');
		objForm.email.value = "";
		objForm.email.focus();
		return false;
	}		
	if (objForm.name2.value == '') {
		alert('Please enter the recipient\'s name.');
		objForm.name2.focus();
		return false;
	}	
	if (objForm.email2.value == '') {
		alert('Please enter the recipient\'s email address.');
		objForm.email2.focus();
		return false;
	}	
	if (!isEmail(objForm.email2.value)) {
		alert('Please enter a valid email address.');
		objForm.email2.value = "";
		objForm.email2.focus();
		return false;
	}	
	if (objForm.message.value == '') {
		alert('Please enter a short message.');
		objForm.message.focus();
		return false;
	}
	return true;
}

function checkcontact(objForm) {
	if (objForm.name.value == '') {
		alert('Please enter your name.');
		objForm.name.focus();
		return false;
	}	
	if (objForm.email.value == '') {
		alert('Please enter your email address.');
		objForm.email.focus();
		return false;
	}	
	if (!isEmail(objForm.email.value)) {
		alert('Please enter a valid email address.');
		objForm.email.value = "";
		objForm.email.focus();
		return false;
	}			
	if (objForm.bmonth.value == '') {
		alert('Please select the month of your birthday.');
		objForm.bmonth.focus();
		return false;
	}		
	if (objForm.bday.value == '') {
		alert('Please select the day of your birthday.');
		objForm.bday.focus();
		return false;
	}		
	if (objForm.byear.value == '') {
		alert('Please enter the year of your birthday.');
		objForm.byear.focus();
		return false;
	}	
	var dtbirthday = objForm.bmonth.value + '/' + objForm.bday.value + '/' + objForm.byear.value;
	if (dateDiff('d', dtbirthday, dtToday) / 365 < 21) {
		alert('Sorry, you must be at least 21 years to view this page.');
		objForm.byear.focus();
		return false;		
	}
	if (objForm.comments.value == '') {
		alert('Please enter your suggestion or comment.');
		objForm.comments.focus();
		return false;
	}		
	return true;	
}