function ventanacalendar(id){
//alert("http://agenda.ideario.es/");
window.open("http://agenda.ideario.es/postpopup.php/"+id+"/","","scrollbars=1,height=500,width=632");
return false;
//alert(id);
}
function avisolegal(id)
{
window.open("http://www.iniciativajoven.org/alegal.php?id="+id+"","","scrollbars=1,height=500,width=632");
return false;
}
/*
Función que oculta el cabecero hacia arriba
void
*/
function arriba(){
var vari;
document.getElementById('bandera').style.display='none';
document.getElementById('head2').style.display='none';
document.getElementById('navcontainer').style.display='none';
clip_bottom -= km;
clip_bottom = clip_bottom % maximo_clip_bottom;
xClip ("head2", clip_top, clip_right, clip_bottom, clip_left);
if (clip_bottom>altura)
{
setTimeout("arriba()",1);
}
else
{
show_movie('http://www.iniciativajoven.org/ajax/showmovie.php?','ver=0','c11');
initFade('c11');//efecto transparencia
document.getElementById('navcontainer').style.display='block';
setCookie ("despli", 'up', caduca);//guardo el despliegue del cabecero
clip_bottom=altura;
}
}
/*
Función que muestra el cabecero hacia abajo
void
*/
function abajo(){
document.getElementById('bandera2').style.display='none';
document.getElementById('head2').style.display='none';
document.getElementById('navcontainer').style.display='none';
clip_bottom += km;
clip_bottom = clip_bottom % maximo_clip_bottom;
xClip ("head2", clip_top, clip_right, clip_bottom, clip_left);
if (clip_bottom<(maximo_clip_bottom-km))
setTimeout("abajo()",1);
else
{
clip_bottom = maximo_clip_bottom;
document.getElementById('c11').style.height = maximo_clip_bottom+'px';
document.getElementById('head2').style.clip='rect(0px '+clip_right+'px '+maximo_clip_bottom+'px 0px)';
show_movie('http://www.iniciativajoven.org/ajax/showmovie.php?','ver=1','c11');
initFade('c11');//efecto transparencia
setCookie ("despli", 'dw', caduca); //guardo el despliegue del cabecero
document.getElementById('navcontainer').style.display='block';
}
}
function compruobtener()
{
var obj=document.getElementById('form');
if(obj.tituloes.value!="")
{
document.getElementById('obties').style.display="none";
}
else
{
document.getElementById('obties').style.display="block";
}
if(obj.tituloen.value!="")
{
document.getElementById('obtien').style.display="none";
}
else
{
document.getElementById('obtien').style.display="block";
}
if(obj.titulofr.value!="")
{
document.getElementById('obtifr').style.display="none";
}
else
{
document.getElementById('obtifr').style.display="block";
}
if(obj.titulopt.value!="")
{
document.getElementById('obtipt').style.display="none";
}
else
{
document.getElementById('obtipt').style.display="block";
}
}
function validarformconv()
{
var obj=document.getElementById('form');
var err="";
var selec="";
var sw=0;
//alert(obj.cnv_tites.value);
if(obj.cnv_tites.value=="")
{
selec=eval("obj.cnv_tites.value;");
}
else
sw=1;
//alert(obj.cnv_titen.value);
if(obj.cnv_titen.value=="")
{
selec=eval("obj.cnv_titen.value;");
}
else
sw=1;
//alert(obj.cnv_titfr.value);
if(obj.cnv_titfr.value=="")
{
selec=eval("obj.cnv_titfr.value;");
}
else
sw=1;
//alert(obj.cnv_titpt.value);
if(obj.cnv_titpt.value=="")
{
selec=eval("obj.cnv_titpt.value;");
}
else
sw=1;
if(sw==0)
{
err+="\nTitulo: No ha introducido el título";
}
if(err=="")
{
return true;
}
else
{
alert("MENSAJE DE ERROR: "+err);
return false;
}
}
function validarformfaq()
{
var obj=document.getElementById('form');
var err="";
var selec="";
var sw=0;
if(obj.faq_tites.value=="")
{
selec=eval("obj.faq_tites.value;");
}
else
sw=1;
if(obj.faq_titen.value=="")
{
selec=eval("obj.faq_titen.value;");
}
else
sw=1;
if(obj.faq_titfr.value=="")
{
selec=eval("obj.faq_titfr.value;");
}
else
sw=1;
if(obj.faq_titpt.value=="")
{
selec=eval("obj.faq_titpt.value;");
}
else
sw=1;
if(sw==0)
{
err+="\nTitulo: No ha introducido el título";
}
if(err=="")
{
return true;
}
else
{
alert("MENSAJE DE ERROR: "+err);
return false;
}
}
function initFicha(ide)
{
/*Cargar dinamicamente */
var fichajs=""+ide+"";
if(fichajs=="fichapeli1")
{
alert("Canodromo Portatil");
}
if(fichajs=="fichapeli2")
{
alert("Portable Greyhound Racetrack");
}
if(fichajs=="fichapeli3")
{
alert("Cynodrome portable");
}
}
function nover(ide){
document.getElementById(ide).style.display='none';
}
function debeverse(){
}