function show_hide_opt()
{
	if(eval(document.frmcontactus.hear[4].checked) == true) 
	{
		document.getElementById("other_text1").innerHTML = 'We would love to know where you heard about 1866Franchise:';
		document.getElementById("other_text2").innerHTML = '<input type="text" name="txtother">';
	}
	if(eval(document.frmcontactus.hear[4].checked) == false) 
	{
		document.getElementById("other_text1").innerHTML = '';
		document.getElementById("other_text2").innerHTML = '';
	}
}

function validateMyForm() 
{ 
	if (Trim(document.frmcontactus.txtname.value) == "")
	{  
		alert('Please enter Your Name...');
		document.frmcontactus.txtname.value = '';
		document.frmcontactus.txtname.focus();
		return false;
	}
	if (Trim(document.frmcontactus.txtmail.value) == "")
	{
		alert('Email can not be null');
		document.frmcontactus.txtmail.value = '';
		document.frmcontactus.txtmail.focus();
		return false;
	}
	if(!isValidEmail(document.frmcontactus.txtmail.value))
	{
		document.frmcontactus.txtmail.focus();
		document.frmcontactus.txtmail.select();		
		return false;
	}
	if (Trim(document.frmcontactus.txtcomments.value) == "")
	{
		alert('Please Enter your message');
		document.frmcontactus.txtcomments.value = '';
		document.frmcontactus.txtcomments.focus();
		return false;
	}
	if(!(document.frmcontactus.hear[0].checked) && !(document.frmcontactus.hear[1].checked) && !(document.frmcontactus.hear[2].checked) && !(document.frmcontactus.hear[3].checked) && !(document.frmcontactus.hear[4].checked))
	{
		alert('Please tell us how did you here about us?');
		document.frmcontactus.hear[0].focus();
		return false;
	}
	if(eval(document.frmcontactus.hear[4].checked) == true) 
	{ 
		if(Trim(document.frmcontactus.txtother.value) == '')
		{
			alert('Please Fill the box to tell us how did you here about us?');
			document.frmcontactus.txtother.value = '';
			document.frmcontactus.txtother.focus();
			return false;
		}
	}
	if(document.frmcontactus.txtimagenumber.value == "")
	{
		alert('Please enter the number/letter within the picture to confirm');
		document.frmcontactus.txtimagenumber.value = '';
		document.frmcontactus.txtimagenumber.focus();
		return false;
	}

	return true; 
}

function validateMyReset() 
{ 
	document.frmcontactus.txtname.focus();
	document.getElementById("other_text1").innerHTML = '';
	document.getElementById("other_text2").innerHTML = '';
	return true;
} 
