image1 = new Image();
image1.src = "pic/wicked-campers-price.gif";

<!--
// Nannette Thacker http://www.shiningstar.net
function confirmSubmit()
{
var agree=confirm("Confirm Action: Delete");
if (agree)
	return true ;
else
	return false ;
}
// -->




function FrontPage_Form1_Validator(theForm)
{

  if (theForm.c_name.value == "")
  {
    alert("Please enter a value for the \"Name\" field.");
    theForm.c_name.focus();
    return (false);
  }
  
    if (theForm.c_txt.value == "")
  {
    alert("Please enter a value for the \"Message\" field.");
    theForm.c_txt.focus();
    return (false);
  }
}

function chkeml(theForm)
{
		var x = theForm.m_eml.value;
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
  if ((theForm.m_eml.value == "")||(!filter.test(x)))
  {
    alert("Please enter a valid email address.");
    theForm.m_eml.focus();
    return (false);
  }
}

function FrontPage_reg_form(theForm)
{
  if (theForm.b_name.value == "")
  {
    alert("Please enter a value for the \"name\" field.");
    theForm.b_name.focus();
    return (false);
  }
  
    if (theForm.b_user.value == "")
  {
    alert("Please enter a value for the \"username\" field.");
    theForm.b_user.focus();
    return (false);
  }
  //////////////////
   var alphaExp = /^[0-9a-zA-Z]+$/;
   var u = theForm.b_user.value;
  if (!alphaExp.test(u))
  {
    alert("Username is one word only please.");
    theForm.b_user.focus();
    return (false);
  }
  /////////////////////////////////
      if (theForm.b_pass1.value == "")
  {
    alert("Please enter a value for the \"password 1\" field.");
    theForm.b_pass1.focus();
    return (false);
  }
  
      if (theForm.b_pass2.value == "")
  {
    alert("Please enter a value for the \"password 2\" field.");
    theForm.b_pass2.focus();
    return (false);
  }
  
        if (theForm.b_pass2.value != theForm.b_pass1.value)
  {
    alert("Your passwords do not match.");
    theForm.b_pass1.focus();
    return (false);
  }
  
  		var x = theForm.b_eml.value;
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
  if ((theForm.b_eml.value == "")||(!filter.test(x)))
  {
    alert("Please enter a valid email address.");
    theForm.b_eml.focus();
    return (false);
  }
  
        if (theForm.b_loc.value == "null")
  {
    alert("Please enter a value for the \"connection\" field.");
    theForm.b_loc.focus();
    return (false);
  }
  
          if (!theForm.b_tc.checked)
  {
    alert("You must agree to the terms of use by ticking the box.");
    return (false);
  }
}

function FrontPage_pw_form(theForm)
{

  if (theForm.b_pass1.value == "")
  {
    alert("Please enter a value for the \"old password\" field.");
    theForm.b_pass1.focus();
    return (false);
  }
    if (theForm.b_pass2.value == "")
  {
    alert("Please enter a value for the \"new password 1\" field.");
    theForm.b_pass2.focus();
    return (false);
  }
    if (theForm.b_pass3.value == "")
  {
    alert("Please enter a value for the \"new password 2\" field.");
    theForm.b_pass3.focus();
    return (false);
  }
          if (theForm.b_pass2.value != theForm.b_pass3.value)
  {
    alert("Your new password fields do not match.");
    theForm.b_pass2.focus();
    return (false);
  }
}

function FrontPage_protxt_form(theForm)
{
	        if (theForm.b_loc.value == "null")
  {
    alert("Please enter a value for the \"connection\" field.");
    theForm.b_loc.focus();
    return (false);
  }
  
	  		var x = theForm.b_eml.value;
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
  if ((theForm.b_eml.value == "")||(!filter.test(x)))
  {
    alert("Please enter a valid email address.");
    theForm.b_eml.focus();
    return (false);
  }
}

function FrontPage_foto_form(theForm)
{
//     if ((theForm.imgg1.value == "")&&(theForm.imgg2.value == "")&&(theForm.imgg3.value == ""))
		if (theForm.imgg1.value == "")
  {
    alert("Please select an image before uploading.");
    theForm.imgg1.focus();
    return (false);
  }
	if ((!theForm.imgg1.value == "")&&(theForm.eve1.value == "null"))
	{
       alert("Please select an event to post image to.");
       theForm.eve1.focus();
       return (false);
	}
//	
//		if ((!theForm.imgg2.value == "")&&(theForm.eve2.value == "null"))
//	{
//      alert("Please select an event to post image 2 to.");
//       theForm.eve2.focus();
//       return (false);
//	}
//		if ((!theForm.imgg3.value == "")&&(theForm.eve3.value == "null"))
//	{
//       alert("Please select an event to post image 3 to.");
//       theForm.eve3.focus();
//       return (false);
//	}
		
	theForm.subb.value='upload in progress, please wait...';
	theForm.subb.disabled=true;
}

function FrontPage_contest_form(theForm)
{
			if (theForm.n_name.value == "")
  {
    alert("Please Enter your name.");
    theForm.n_name.focus();
    return (false);
  }
 	  		var x = theForm.n_aml.value;
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
  if ((theForm.n_aml.value == "")||(!filter.test(x)))
  {
    alert("Please enter a valid email address.");
    theForm.n_aml.focus();
    return (false);
  }
  
}