/* Menu Icons */
var GoButton01N = new Image(); GoButton01N.src = dir + "images/go.gif"
var GoButton01H = new Image(); GoButton01H.src = dir + "images/go_h.gif"

function CheckFeedback() {
    var Fields = new Array(["ContactEmail","Contac Email"]);
	var CustomerName = document.forms['qEditForm'].CustomerName;
	if(CustomerName.value.length < 1) {
		CustomerName.focus();
		window.alert('Please Enter your Name:');
		return false;
	}
	var ContactEmail = document.forms['qEditForm'].ContactEmail;
	if(ContactEmail.value.length < 1) {
		ContactEmail.focus();
		window.alert('Please Enter Contact Email:');
		return false;
	}
	try
	{
	  if(!CheckEmail('qEditForm', Fields))
	  {
		  return false;
	  }
	  var CapchaCode = document.forms['qEditForm'].Captcha;
	  if(CapchaCode.value.length < 1) {
		CapchaCode.focus();
		window.alert('Please Enter Verification Code:');
		return false;
	  }
	}
	catch(e) {
	
	}
	return(true);
}

function CheckEmail(TheForm, Checkemail) {
  //Checking for email address
 for(i=0; i<Checkemail.length; i++){
  //var Field = eval(TheForm+'.'+Checkemail[i][0]);
  var Field = eval("document.forms['" + TheForm + "']." + Checkemail[i][0]);
  var Email = Field.value
  //alert (Email)
  var posAt = Email.indexOf('@',0);
  if(Email.length > 0) {
   if ((posAt>0) && (Email.indexOf('.',posAt)>0)) {
      //return true;
   } else {
  	 window.alert("Please enter a valid email address at "+Checkemail[i][1]);
     return false;
    }
  }
  }//for
  return true;
}
