function HelpWindow(url) {
    windowHandle = window.open(url,'popup','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=300, height=325');
	windowHandle.focus();
}

function rowOverEffect(object) {
  if (object.className == 'rContentTableRow') object.className = 'rContentTableRowOver';
}

function rowOutEffect(object) {
  if (object.className == 'rContentTableRowOver') object.className = 'rContentTableRow';
}


function validateForm() 
{
 var okSoFar=true
 with (document.phpformmailer)
 {
  var foundAt = email.value.indexOf("@",0)
  if (foundAt < 1 && okSoFar)
  {
	okSoFar = false
	alert ("Please enter a valid email address.")
	email.focus()
  }
  var e1 = email.value
  var e2 = email2.value
  if (!(e1==e2) && okSoFar)
  {
	okSoFar = false
	alert ("Email addresses you entered do not match.  Please re-enter.")
	email.focus()
  }
  if (thesubject.value=="" && okSoFar)
  {
	okSoFar=false
	alert("Please enter the subject.")
	thesubject.focus()
  }
  if (themessage.value=="" && okSoFar)
  {
	okSoFar=false
	alert("Please enter the details for your enquiry.")
	themessage.focus()
  }
  if (okSoFar==true)  submit();
 }
}

function validateArticle() 
{
 var okSoFar=true
 with (document.phpformmailer)
 {
  var foundAt = email.value.indexOf("@",0)
  if (foundAt < 1 && okSoFar)
  {
	okSoFar = false
	alert ("Please enter a valid email address.")
	email.focus()
  }
  var e1 = email.value
  var e2 = email2.value
  if (!(e1==e2) && okSoFar)
  {
	okSoFar = false
	alert ("Email addresses you entered do not match.  Please re-enter.")
	email.focus()
  }
  if (thesubject.value=="" && okSoFar)
  {
	okSoFar=false
	alert("Please enter the subject.")
	thesubject.focus()
  }
  if (theauthor.value=="" && okSoFar)
  {
	okSoFar=false
	alert("Please enter the details about the author.")
	themessage.focus()
  }
  if (okSoFar==true)  submit();
 }
}