// JavaScript Documentfunction contactForm_Validator(contactForm)

function generate_randimage()
{
	num = Math.floor(Math.random()*8);
	
		if ( num == 0 )
		{
			generate_randimage();
		}
		
	html = '';
	html += '<img src="/site/perthweb/templates/grfx/anti-spam/image' + num + '.jpg" alt="Anti-Spam Code" width="150" height="35" />';
	html += "\n";
	html += '<input type="hidden" name="pwAntiCode" value="' + num + '" />';
	return html;
}

function contactForm_Validator (theForm)
{
if (contactForm.Name.value == "")
  {
    alert("Please enter your name.");
    contactForm.Name.focus();
    return (false);
  }
if (contactForm.email.value == "")
  {
    alert("Please enter your email address.");
    contactForm.email.focus();
    return (false);
  }
return (true);
}