function show_hide_opt()
{
	if(eval(document.contactus.hear[4].checked) == true) 
	{
		document.getElementById("other_hear").style.display = '';
	}
	if(eval(document.contactus.hear[4].checked) == false) 
	{
		document.getElementById("other_hear").style.display = 'none';
	}
}

function validateMyForm() 
{ 
	if (Trim(document.contactus.txtname.value) == "")
	{  
		alert('Please enter Your Name...');
		document.contactus.txtname.value = '';
		document.contactus.txtname.focus();
		return false;
	}
	if (Trim(document.contactus.txtmail.value) == "")
	{
		alert('Email can not be null');
		document.contactus.txtmail.value = '';
		document.contactus.txtmail.focus();
		return false;
	}
	if(!isValidEmail(document.contactus.txtmail.value))
	{
		document.contactus.txtmail.focus();
		document.contactus.txtmail.select();		
		return false;
	}
	if (Trim(document.contactus.txtotherdetails.value) == "")
	{
		alert('Please Enter your message');
		document.contactus.txtotherdetails.value = '';
		document.contactus.txtotherdetails.focus();
		return false;
	}
	if(!(document.contactus.hear[0].checked) && !(document.contactus.hear[1].checked) && !(document.contactus.hear[2].checked) && !(document.contactus.hear[3].checked) && !(document.contactus.hear[4].checked))
	{
		alert('Please tell us how did you here about us?');
		document.contactus.hear[0].focus();
		return false;
	}
	if(eval(document.contactus.hear[4].checked) == true) 
	{ 
		if(Trim(document.contactus.txtcomment.value) == '')
		{
			alert('Please Fill the box to tell us how did you here about us?');
			document.contactus.txtcomment.value = '';
			document.contactus.txtcomment.focus();
			return false;
		}
	}
	if(document.contactus.txtimagenumber.value == "")
	{
		alert('Please enter the number/letter within the picture to confirm');
		document.contactus.txtimagenumber.value = '';
		document.contactus.txtimagenumber.focus();
		return false;
	}
	
	document.contactus.temp.value = 1;
	return true; 
}

function validateMyReset() 
{ 
	document.contactus.txtname.focus();
	return true;
} 
