// JavaScript Document
function btnOvr(btn) {
	btn.className+=" over";
	btn.className=btn.className.replace(" clk", "");
}
function btnOut(btn) {
	btn.className=btn.className.replace(" over", "");
	btn.className=btn.className.replace(" clk", "");
}
function btnClk(btn) {
	btn.className+=" clk";
	btn.className=btn.className.replace(" over", "");
}

function isEmailAddr(Email)
{
 	var result = false
 	var theStr = new String(Email)
	var index = theStr.indexOf("@");
	if (index > 0) {
    var pindex = theStr.indexOf(".",index);
    if ((pindex > index+1) && (theStr.length > pindex+1))
 	result = true;
  }
 return result;
}
 

function feedbackFormCheck() {
	var f = document.feedBack;
	
	if(f.Name.value == '') {
		alert("Please enter your Name");
		f.Name.focus();
		return false;
	}
	if (!isEmailAddr(f.Email.value)) {
		alert("Please fill in a correctly formatted Email Address to continue.");
		f.Email.focus();
		return false;
	}
	if(f.Comments.value == '') {
		alert("Please enter your Question / Comments");
		f.Comments.focus();
		return false;
	}
}