function validate_required(field,alerttxt)
{
	with (field)
		{
			if (value==null||value=="")
			{alert(alerttxt);return false}
			else {return true}
		}
}
function validate_form(thisform)
{
	with (thisform)
	{
		if (validate_required(comment_name, "Your NAME is blank")==false) {comment_name.focus(); return false}
		if (validate_required(comment_title,"Your TITLE seems to be blank ! Try to repair it. Thank you.")==false)
		{comment_title.focus();return false}
		if (validate_required(body_comment,"Your COMMENT seems to be blank ! Try to repair it. Thank you.")==false)
		{body_comment.focus();return false}
	}
}
function validate_contact(thisform)
{
	with (thisform)
	{
		if (validate_required(full_name,"Your NAME seems to be blank ! Try to repair it. Thank you.")==false)
			{full_name.focus();return false}
		if (validate_email(email_address,"Your EMAIL is not valid.")==false)
			{email_address.focus();return false}
		if (validate_required(subject,"Your SUBJECT seems to be blank ! Try to repair it. Thank you.")==false)
			{subject.focus();return false}
		if (validate_required(message,"Your MESSAGE seems to be blank ! Try to repair it. Thank you.")==false)
			{message.focus();return false}
	}
}
function validate_email(field,alerttxt)
{
	with (field)
		{
			apos=value.indexOf("@")
			dotpos=value.lastIndexOf(".")
			if(apos<1 || dotpos-apos<2)
				{ alert (alerttxt); return false}
		}
}
function alertemail(which)
{
	if (confirm("You entered \""+which.value+"\" as your email address. Is that correct?"))
	return true
	else
{
which.focus()
return false
}
}
