
/*************************************************************************
                         Obrir Finestres Flotants
************************************************************************/

function obre_seccio(web, ample, alt)
{
finestra_seccio=window.open(web,"finestra_seccio","width="+ample+",height="+alt+",top=10px,left=10px,scrollbars=yes,resizable=yes");
finestra_seccio.focus();
}

function obre_imatge(web, ample, alt)
{
finestra_imatge=window.open(web,"finestra_imatge","width="+ample+",height="+alt+",top=10px,left=10px,scrollbars=yes,resizable=yes");
finestra_imatge.focus();
}

function obre_dades(web, ample, alt)
{
finestra_dades_g=window.open(web,"finestra_dades_g","width="+ample+",height="+alt+",top=1px,left=1px,scrollbars=yes,resizable=yes");
finestra_dades_g.focus();
}

function obre_so(web)
{
finestra_so=window.open(web,"finestra_so","width=300,height=180,top=1px,left=1px,scrollbars=no,resizable=yes");
finestra_so.focus();
}

function obre_video(web)
{
finestra_video=window.open(web,"finestra_video","width=300,height=300,top=1px,left=1px,scrollbars=no,resizable=yes");
finestra_video.focus();
}

function obre_calendari(web)
{
finestra_calendari=window.open(web,"finestra_calendari","width=590,height=450,top=30px,left=30px,scrollbars=yes,resizable=yes");
finestra_calendari.focus();
}

function obre_llibre(web)
{
finestra_llibre=window.open(web,"finestra_llibre","width=590,height=450,top=30px,left=30px,scrollbars=yes,resizable=yes");
finestra_llibre	.focus();
}

function valida_cerca()
{
 with (document.registrar)
 {
  result1 = esta_ple(words);
  if (result1 == 0)
  {
  alert('Heu de posar-hi alguna cosa per a realitzar la recerca !');
  return false;
  }
  else return true
 }
}               


function esta_ple(obj)
{

   if (obj.value=='')
  {
    obj.focus();
    return false;
  }
    return true;
}
