//*-------scp01.js-----12/09/02 09:33a.m.------------------------------*//
function StartBanner()
{
imagenhoy.SetImage("foto");
imagenhoy.SetDelay(1900);
imagenhoy.DoBannerLinks();
}
//*------------------------------------------------------------------------*//
function CambiaColor(Boton){
with (Boton.style)
if((backgroundColor!="#ccffcc")&&(color="red")){
backgroundColor="#ccffcc"
}
else if((backgroundColor="#EAEAFF")&&(color="Darkblue")){
}
}

//*------------------------------------------------------------------------*//
function dayofweek_iframe(){
if (ie||dom){
var iframeobj=document.getElementById? document.getElementById("dynstuff") : document.all.dynstuff
iframeobj.src=daycontent[mytoday]
}
//*------------------------------------------------------------------------*//
}
function irA(menu)
{
    var selection = menu.options[menu.selectedIndex].value
    if (selection != "None") 
        parent.location.href = selection
}
//*------------------------------------------------------------------------*//
function irA(menu2)
{
    var selection = menu2.options[menu2.selectedIndex].value
    if (selection != "None") 
        parent.location.href = selection
}
//*------------------------------------------------------------------------*//
function irA(menu3)
{
    var selection = menu3.options[menu3.selectedIndex].value
    if (selection != "None") 
        parent.location.href = selection
}
//*------------------------------------------------------------------------*//
function irA(menu4)
{
    var selection = menu4.options[menu4.selectedIndex].value
    if (selection != "None") 
        parent.location.href = selection
}
//*-------------------------------------------------------------------------*//
function irA(menu5)
{
    var selection = menu5.options[menu5.selectedIndex].value
    if (selection != "None") 
        parent.location.href = selection
}
//*--------------------------------------------------------------------------*//
function irA(menu6)
{
    var selection = menu6.options[menu6.selectedIndex].value
    if (selection != "None") 
        parent.location.href = selection
}
//*--------------------------------------------------------------------------*//
function irA(menu7)
{
    var selection = menu7.options[menu7.selectedIndex].value
    if (selection != "None") 
        parent.location.href = selection
}
//*---------------------------------------------------------------------------*//
function irA(menu8)
{
    var selection = menu8.options[menu8.selectedIndex].value
    if (selection != "None") 
        parent.location.href = selection
}
//*---------------------------------------------------------------------------*//
function irA(menu9)
{
    var selection = menu9.options[menu9.selectedIndex].value
    if (selection != "None") 
        parent.location.href = selection
}
//*---------------------------------------------------------------------------*//
function irA(menu10)
{
    var selection = menu10.options[menu10.selectedIndex].value
    if (selection != "None") 
        location.href = selection
}
//*---------------------------------------------------------------------------*//
function irA(menu11)
{
    var selection = menu11.options[menu11.selectedIndex].value
    if (selection != "None") 
        parent.location.href = selection
}
//*---------------------------------------------------------------------------*//
function irA(menu12)
{
    var selection = menu12.options[menu12.selectedIndex].value
    if (selection != "None") 
        parent.location.href = selection
}
//*---------------------------------------------------------------------------*//
function irA(menu13)
{
    var selection = menu13.options[menu13.selectedIndex].value
    if (selection != "None") 
        parent.location.href = selection
}
//*---------------------------------------------------------------------------*//
function irA(menu14)
{
    var selection = menu14.options[menu14.selectedIndex].value
    if (selection != "None") 
        parent.location.href = selection
}
//*---------------------------------------------------------------------------*//
function irA(menu15)
{
    var selection = menu15.options[menu15.selectedIndex].value
    if (selection != "None") 
        parent.location.href = selection
}

//*--------------------------------------------------------------------------*//
function changeBackground(hexNumber)
{
	document.bgColor=hexNumber
}
//*-----------------------------------------------------------------------------*//
function abreteya() 
{
msg=open("noticias2002_test.HTML","DisplayWindow","toolbar=no,directories=no,scrollbars=no,resizable=no,menubar=no,height=420,width=420");
}
//*-----------------------------------------------------------------------------*//
function abreteya2() 
{
msg=open("casos_galeria.HTML","DisplayWindow","toolbar=yes,directories=no,scrollbars=yes,resizable=yes,menubar=no,height=320,width=320");
}
//*-----------------------------------------------------------------------------*//
//*-----------------------------------------------------------------------------*//
function abreteya3() 
{
msg=open("galeria_fotos/fotos_tabla.htm","DisplayWindow","toolbar=yes,directories=no,scrollbars=yes,resizable=no,menubar=no,height=420,width=520");
}
//*-----------------------------------------------------------------------------*//
//*-----------------------------------------------------------------------------*//
function abreteya4() 
{
msg=open("galeria_fotos/page_01.htm","DisplayWindow","toolbar=yes,directories=no,scrollbars=yes,resizable=no,menubar=no,height=500,width=500");
}

//*-------------------ventana izquierda-------------------------------------------------*//
function abreteya7() 
{
msg=open("respuestallena.HTML","DisplayWindow","toolbar=no,directories=no,scrollbars=yes,resizable=yes,menubar=no,height=160,width=300,top=10,left=10");
}
//*-----------------------------------------------------------------------------*//
function abreteya8() 
{
msg=open("respllena_02.HTML","DisplayWindow","toolbar=no,directories=no,scrollbars=yes,resizable=yes,menubar=no,height=100,width=70,top=40,left=450");
}
//*-----------------------------------------------------------------------------*//
//*-----------------------------------------------------------------------------*//
function abreteya18() 
{
msg=open("","DisplayWindow","toolbar=yes,directories=no,scrollbars=yes,resizable=yes,menubar=no,height=500,width=500");
}

function click() {
if (event.button==2) {
alert('lo esperamos maņana en MedSpain')
}
}
document.onmousedown=click
//*-----------------------------------------------------------------------------*//
function srchnow(fm)
  {
  var http;
  var sterms="";
  var j=0;
  var k;
  var l;
  var engvar;
  var tmp=fm.terms.value;
  k=tmp.length;
  for (j=0;j<k;j++)
    {
    if (tmp.charAt(j)==" ")
      {
      sterms+="+";
      }
    else
      {
      sterms+=tmp.charAt(j);
      }
    }
  l=fm.engine.options.length;
  for (j=0;j<l;j++)
    {
    if (fm.engine.options[j].selected==true)
      {
      engvar=fm.engine.options[j].text;
      }
    }

  if (engvar=="infoSeek")
    http="http://www.infoseek.com/Titles?qt="+sterms+"&col=WW&sv=N3&lk=noframes&nh=10";
  if (engvar=="Excite")
    http="http://www.excite.com/search.gw?c=web&search="+sterms+"&trace=a&x=47&y=16";
  if (engvar=="Lycos")
    http="http://www.lycos.com/cgi-bin/pursuit?query="+sterms+"&cat=lycos&x=28&y=9";
  if (engvar=="WebCrawler")
    http="http://www.webcrawler.com/cgi-bin/WebQuery?mode=compact&maxHits=25&searchText="+sterms;
  if (engvar=="AltaVista")
    http="http://www.altavista.digital.com/cgi-bin/query?pg=q&what=web&fmt=.&q="+sterms;
  if (engvar=="HotBot")
    http="http://www.hotbot.com/?SW=web&SM=MC&MT="+sterms+"&DC=10&DE=2&RG=NA&_v=2&act.search.x=85&act.search.y=3"
  window.open(http,"Results","toolbar=yes,location=yes,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=600,height=500");
  return;
  }

//*-----------------------------------------------------------------------------*//
function abrepopup() 
{
window.open("\pregunta.HTML","","toolbar=0,location=0,directories=0,menuBar=0,scrollbars=yes,resizable=yes,width=330,height=370,left=350,top=10");
}

//*-----------------------------------------------------------------------------*//



