function submenuToggle (on, off, current, other) { //Effect.Appear(on); $(on).style.display='block'; $(off).style.display='none'; $('menu').style.borderBottom='1px solid #a9b0b8'; $(current).style.borderBottom='1px solid #fff'; $(other).style.borderBottom='0'; $(current).style.background='url(http://www.godspell.org.ar/images/menu_principal/' + on + '.gif)'; $(other).style.background='url(http://www.godspell.org.ar/images/menu_principal/' + off.substr(0, 3) + '.gif)'; } function fill(target, value) { if (document.getElementById(target).value == '') { document.getElementById(target).value = value; return; } return; } function MM_openBrWindow(theURL,winName,features) { window.open(theURL,winName,features); } function agregarHijos(cantActual, max) { cantActual = parseInt(cantActual, 10); var j = cantActual + 1; if(j <= max) { for(i = cantActual; i <= j; i++) { $('hijo_'+i).style.display = 'block'; $('nombre_hijo_'+i).disabled = ''; $('diaNac_'+i).disabled = ''; $('mesNac_'+i).disabled = ''; $('anoNac_'+i).disabled = ''; $('edad_'+i).disabled = ''; $('curso_'+i).disabled = ''; $('antecedentes_educacionales_'+i).disabled = ''; $('cantActual').value = i; } } } function aleatorio(inferior,superior){ numPosibilidades = superior - inferior; aleat = Math.random() * numPosibilidades; aleat = Math.round(aleat); return parseInt(inferior) + aleat; } function imagesRandom () { setInterval("changeImages()",5000); } function changeImages() { var num = aleatorio(1, 4); document.getElementById('hdImg').style.background='url(images/img_intranet/'+num+'.jpg) no-repeat'; }