
/* - javascriptParticipa - */
// http://oirs.penalolen.cl/portal_javascripts/javascriptParticipa?original=1
var pagina='http://oirs.penalolen.cl';
function redireccionar(){location.href=pagina}
function reajustarFrame(){var docHeight;if(typeof document.height!='undefined'){docHeight=document.height}
else if(document.body&&typeof document.body.scrollHeight!='undefined'){docHeight=document.body.scrollHeight}
docHeight=docHeight+50;var tamano;tamano=docHeight+'px';parent.document.getElementById('oirs').style.height=tamano;alert(tamano)}
function checkform(form){if(form.title.value==""||form.details.value==""||form.contactEmail.value==""){alert("Complete los campos obligatorios.");return false }
if(correo_valido(form)==true){return true }
alert("Ingrese un correo electrónico valido.")
return false }
function correo_valido(form){if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(form.contactEmail.value)){return true }
return false }

