	/*function validate_form()
	{
		var str=""
		
		if (document.form1.name.value=="")
			str +="\n\t- Name";	
		if (document.form1.email.value!="")
		{
			if (!(isEmail (document.form1.email.value)))
			{
				alert("Please provide valid Email address");
				return false;
			}
		}
		else if (document.form1.email.value=="")
		{
			str +="\n\t- Email";
		}
		if (document.form1.message.value=="")
			str +="\n\t- Message";
		if (document.form1.img_code.value == "")
			str +="\n\t- Image Code";
		else if (document.form1.img_code.value.toUpperCase() != '<%=img_code%>')
			str +="\n\t- The code you have entered does not match.";//\n\tPlease enter the correct code in order to complete your submission.

		if (str =="")
			return true;
		else
		{
			alert("Please provide the following" +str);
			return false;
		}
	}*/
	
	function isEmail (theStr)
	{
		var atIndex = theStr.indexOf('@');
		var dotIndex = theStr.indexOf('.', atIndex);
		var atSpace = theStr.indexOf(' ');	
		var flag = true;
		theSub = theStr.substring(0, dotIndex+1)
		if ((atIndex < 1)|| (atIndex != theStr.lastIndexOf('@')) || (atSpace > 0 )  ||(dotIndex < atIndex + 2)||(theStr.length <= theSub.length)) 
		{
			flag = false;
		}
		else
		{
			document.form1.submit();
		}
		return(flag);
	}