// JavaScript Document
	function OpenNewWindow(mypage,w,h,myname){
		var winl = (screen.width-w)/2;
		var wint = (screen.height-h)/2;
		settings='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=yes,dependent=no'
		win=window.open(mypage,myname,settings)
		if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
	}


//	function isEmpty(str) {
//		// Check whether string is empty.
//		for (var intLoop = 0; intLoop < str.length; intLoop++)
//			if (" " != str.charAt(intLoop))
//				return false;
//			return true;
//	}
            
//             function checkRequired(f){
//              var strError = "";
//              window.alert(f.elements.length);
//			  for (var intLoop = 0; intLoop < f.elements.length; intLoop++)
//                window.alert(f.elements[intLoop].name);
//				if (null!=f.elements[intLoop].getAttribute("required")) 
//                    if (isEmpty(f.elements[intLoop].value))
//                        strError += "  " + f.elements[intLoop].name + "\n";
//                if ("" != strError) {
//                    alert("Los siguientes datos requeridos son necesarios:\n" + strError);
//                    return false;
//                } 
//                else
//                    return true
//				}
				
	function checkRequired(f){
		if (f.Contacto.value.length == 0){
			window.alert("Debe introducir la Persona de contacto");
			f.Contacto.style.background='#FFD7DF';
			f.Contacto.focus();
			return false;
		}
		else if (f.Email.value.length == 0){
			window.alert("Debe introducir el E-mail");
			f.Email.style.background='#FFD7DF';
			f.Email.focus();
			return false;
		}
		else if (f.AceptaLOPD.checked == false){
			window.alert("Debe marcar Condiciones Legales LOPD");
			return false;
		}
		else{
			return true
		}
	}

