
//String to check Email Value
function IsInd(STR,subSTR){
  var s = STR.indexOf(subSTR);
  if (s != -1) return true;	else return false;
}


//Test Fields function
function test_fields(){
	with (document.form1){
		if (email.value == "" || !IsInd(email.value,"@") || !IsInd(email.value,".")){alert("Introduza um email válido."); return false}
	}
	return true
}

