function fValidar(campos){
	var sOnError = null;
	if(campos){
		var arrVec = campos.split(",");
		for (s = 0; s < arrVec.length; s++){

			//Validacion campos
			if(document.frmSend[arrVec[s]].value == ''){
				document.getElementById('errorBox').style.display='block';
				document.getElementById('errorMsg').style.display='block';
				document.getElementById('errorMsg').innerHTML = '<img src="http://www.perritosdesegovia.com/img07/botones/icon_alert.gif" border="0"  align="absbottom" />&nbsp;Sorry, the field <b>\'' + arrVec[s] + '\'</b> is obligatory.';
				sOnError = true;
				document.frmSend[arrVec[s]].focus();
				break;
			}//Fin IF
			
			//Validacion mail
			if(arrVec[s] == 'email'){
				var sEmail = document.frmSend[arrVec[s]].value;
				//expresion regular
				var reg_exp_email = new RegExp('^([A-z, 0-9]+|[A-z, 0-9][A-z, 0-9, \\., \\-,\\+]*[A-z, 0-9])'+'@'+'([A-z, 0-9]+|[A-z, 0-9][A-z, 0-9, \\.,\\-]*[A-z, 0-9])'+'\\.'+'([A-z]+|[A-z]+[A-z\.]+[A-z]+)$', 'i');

				if (sEmail.match(reg_exp_email) == null){
					document.getElementById('errorBox').style.display='block';
					document.getElementById('errorMsg').style.display='block';
					document.getElementById('errorMsg').innerHTML = '<img src="http://www.perritosdesegovia.com/img07/botones/icon_alert.gif" border="0" align="absbottom" />&nbsp;Sorry, the email address <b>\'' + sEmail + '\'</b> is not correct.';
				sOnError = true;
				document.frmSend[arrVec[s]].focus();
				break;
				}/*Fin IF*/
				
			}//Fin IF arrVec[s] == 'mail'
		}//Fin FOR
	}//Fin IF
	if(sOnError != true){
		//frmSend.action = "http://perritosdesegovia.com/chs-bin/formmail.php";
		frmSend.submit();
	}
}//Fin Function
