function isEmailAddr(email) { var result = false; var theStr = new String(email); var index = theStr.indexOf("@"); if (index > 0) { var pindex = theStr.indexOf(".",index); if ((pindex > index+1) && (theStr.length > pindex+1)) result = true; } return result; } function validRequired(formField,fieldLabel) { var result = true; if (formField.value == "") { alert('Por favor escribe el "' + fieldLabel +'".'); formField.focus(); result = false; } return result; } function allDigits(str) { return inValidCharSet(str,"0123456789"); } function inValidCharSet(str,charset) { var result = true; // Note: doesn't use regular expressions to avoid early Mac browser bugs for (var i=0;i 0) && (month < 13) && allDigits(elems[1]) && (day > 0) && (day < 32) && allDigits(elems[2]) && ((elems[2].length == 2) || (elems[2].length == 4)); } if (!result) { alert('Please enter a date in the format MM/DD/YYYY for the "' + fieldLabel +'" field.'); formField.focus(); } } return result; } function validateForm(theForm) { if (!validRequired(theForm.Nombres,"Nombre")) return false; if (!validInt(theForm.Telefono,"Telefono",true)) return false; if (!validRequired(theForm.Lugar,"Lugar del evento")) return false; if (!validRequired(theForm.Nombre_del_evento,"Nombre del evento")) return false; if (!validInt(theForm.Numero_de_personas,"Numero de Personas",true)) return false; if (!validEmail(theForm.Email,"Email",true)) return false; if (!validRequired(theForm.Nombre_del_evento,"Nombre del evento")) return false; if (!validInt(theForm.Numero_de_personas,"Numero de Personas",true)) return false; if (!validEmails(theForm.Email,"Email",true)) return false; if (!validRequired(theForm.Mas_informacion_del_evento,"Mas Informacion del evento")) return false; // <--------- End return true; } function validateForma(theForm) { if (!validRequired(theForm.Nombres,"Nombre")) return false; if (!validInt(theForm.Telefono,"Telefono",true)) return false; if (!validRequired(theForm.Como_se_entero_De_alohagdl,"Como te enteraste")) return false; if (!validEmail(theForm.Email,"Email",true)) return false; if (!validRequired(theForm.Mensaje,"Tu mensaje")) return false; return true; } function ini() { var browsName = navigator.appName; if (browsName == "Microsoft Internet Explorer") { alert ("Gracias por seleccionarnos como tu pagina de inicio a Internet"); } else if (browsName == "Netscape") { alert ("\nPara seleccionar www.AlohaGDL.com como tu página de sociales de inicio:\n\n Desde Netscape: \n1)Abre el menu Edit y selecciona la pestaña Preferences\n2)En la casilla location introduce la siguiente dirección\n http://www.alohaGDL.com/\n3)Una vez hecho esto, pulsa OK\n\nEn FireFox:\n1)Herramientas\n2)Opciones\n3)General\nPágina de Inicio: http://www.alohagdl.com\nUna vez hecho esto, pulsa Aceptar/OK \n\nGracias por dejarnos ser tu pagina de inicio a Internet"); } else if (browsName == "Opera") { alert ("\nPara poner wwww.alohaGDL.com como tu pagina de inicio:\n\n Desde Opera 5\n\n- Abre el menu Navegacion\n- Selecciona la pestana Configurar pagina principal...\n- En la casilla de abajo pon la siguiente direccion\n http:/www.alohaGDL.com/\n- Una vez hecho esto pulsa OK\n\nGracias por dejarnos ser tu pagina de inicio a Internet"); } else alert ("\nPara poner www.alohaGDL.com como tu pagina de inicio:\n\n- Consulta las instrucciones de tu navegador\n\nGracias por dejarnos ser tu pagina de inicio a Internet"); } function agregar(){ if ((navigator.appName=="Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>=4)) { var url="http://www.alohagdl.com/"; var titulo="AlohaGDL.com, tu portal, tus eventos"; window.external.AddFavorite(url,titulo); } else { if(navigator.appName == "Netscape") alert ("Presione Crtl+D para agregar este sitio en sus Bookmarks"); } }