function validate_form(theForm)
{
	
  if (theForm.firstname.value == "")
  {
    alert("Please enter a value for the \"Name\" field.");
    theForm.firstname.focus();
    return (false);
  }

  if (theForm.email.value == "")
  {
    alert("Please enter a value for the \"Email Address\" field.");
    theForm.email.focus();
    return (false);
  }

try {

  if (theForm.url.value == "http://")
  {
    alert("Please enter a value for the \"URL\" field.");
    theForm.url.focus();
    return (false);
  }
} catch(e) {

}

 if(theForm.querytype.options[theForm.querytype.selectedIndex].value == '')	{
    alert("Please specify the query type");
    theForm.querytype.focus();
    return (false);
 
 }

  theForm.checked.value = '1';
 
  return (true);
}

function checkdefault(v)	{

	if(v.value=='optional')	{
	v.value='';
	}

}

function validate_evalform(theForm)
{
	
  if (theForm.Email.value == "")
  {
    alert("Please enter a value for the \"Email Address\" field.");
    theForm.Email.focus();
    return (false);
  }

  theForm.send.value = '1';
 
  return (true);
}
