function validate(){
    
    var form  = document.getElementById('solint');
	var valor = "";

	if (form.int_empresa.value      == "")     { valor+='- Nombre de Empresa\n '; }
	if (form.int_rif.value.length   < 8)       { valor+='- El RIF debe contener 8 digitos en la primera entrada\n ';}
	if (form.int_rif_2.value.length < 1)       { valor+='- El RIF debe contener 1 digito en la segunda entrada\n ';}
	if (form.int_replegal.value     == "")     { valor+='- Representante Legal\n '; }
	if (form.estado.value           == "null") { valor+='- Estado\n '; }
    if (form.int_direccio.value     == "")     { valor+='- Direccion\n '; }
	if (form.int_codarea.value      == "")     { valor+='- Codigo de area\n ';}
    if (form.int_telefono.value     == "")     { valor+='- Telefonos\n ';	}
	if (form.int_correo.value       == "")     { valor+='- Correo electronico\n '; }
    if (form.int_zonas.value        == "")     { valor+='- Zonas de Cobertura\n '; }
    if (form.int_perfil.value       == "")     { valor+='- Perfil de productos y servicios que ofrece\n '; }

	if (valor.length > 0){
		alert('Falto por llenar los siguientes campos:\n\n '+valor+'\n Por favor verifique el formulario');
		return false;
	}//end if

    if (form.int_correo.value.match(/^[A-Za-z][A-Za-z0-9_]*@[A-Za-z0-9_]+\.[A-Za-z0-9_.]+[A-za-z]$/) == null) {
           alert ("La direccion de correo parece estar incorrecta, por favor verifiquela\n Recuerde que es un campo obligatorio");
           form.int_correo.focus();
           return;
        }//end if
    form.submit();    
}//end function

function checkIsNaN(cCampo){
    cCampo = document.getElementById(cCampo);
    if(isNaN(cCampo.value)){
        alert('Solo puede introducir numeros en este campo');
        cCampo.value = "";
        cCampo.focus()
    }//end function
}//end function

function checkIsMail(){
    var cMail = document.getElementById('int_correo');
    
	if (cMail.value.length != 0){
        if (cMail.value.match(/^[A-Za-z][A-Za-z0-9_]*@[A-Za-z0-9_]+\.[A-Za-z0-9_.]+[A-za-z]$/) == null) {
           alert ("La direccion de correo parece estar incorrecta, por favor verifiquela");
           cMail.focus()
           return;
        }//end if
	}//end if
}//end function