// JavaScript Document
function validar_caracteres(form,div,valor,valor_min) {
	if(valor > valor_min){
document.getElementById(div).className = 'val_check';
return (true)
} else {
document.getElementById(div).className = 'val_cross';
return (false);
}
}

function validar_email(form,div,valor){
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(valor)){
document.getElementById(div).className = "val_check";
return (true)
}else{
document.getElementById(div).className = "val_cross"
document.forms[form].email.focus()
return (false);
}}

function validar_select(form,div,valor) {
if(valor != 0){
 document.getElementById(div).className = "val_check";
return (true)
} else {
 document.getElementById(div).className = "val_cross"
 document.forms[form].email.focus()
return (false);
}
}
