function maximize() {
if (top.location != location) top.location.href = location.href;
 self.moveTo(0,0);
 self.resizeTo(screen.availWidth,screen.availHeight);
}

function parent() {
if(top==self){setTimeout("location='http://jardineshospitaldeespecialidades.com'",1500)}
}

function autotime() {
setTimeout("location='http://jardineshospitaldeespecialidades.com'",5000)
}


function setfoto(identidad,image) {
photo = "document.form." + identidad + '.src ="gra/' + image + '.jpg"';
eval(photo);
}

function Validar(form) {

   if (form.email.value == "")
  { alert("Por favor ingrese su dirección de e-mail"); form.email.focus(); return; }
  
if (form.email.value.indexOf('@', 0) == -1 || form.email.value.indexOf('.', 0) == -1 || form.email.value.indexOf(' ') != -1)
  { alert("Dirección de e-mail inválida verifiquela"); 
  form.email.focus(); return; }
  
 if (form.Nombre.value == "")
  { alert("Por favor ingrese su nombre"); form.Nombre.focus(); return; }
  form.submit();
}

function setpopup(mypage,myname,w,h) {
 var win=null;
  {
   myleft=(screen.width)?(screen.width-w)/2:100; 
   mytop=(screen.height)?(screen.height-h)/2:100;
  }
   settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes"; 
 win=window.open(mypage,myname,settings);
win.focus();
}

function display(swf) {
var imagename='', w="600", h="300", fla = swf + ".swf";
{myleft=(screen.width)?(screen.width-w)/2:100; mytop=(screen.height)?(screen.height-h)/2:100;}
OpenWin = this.open("", "juegos","toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=yes,width=" + w + ",height=" + h + ", top=" + mytop + ",left=" + myleft + ";");
doc = OpenWin.document;
doc.write('<html><head><title>Demo<\/title></head>');
doc.write('<body bgcolor="#000000" LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0"><center>');
doc.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://active.macromedia.com/flash2/cabs/swflash.cab#version=5,0,0,0\" width=\"100%\" height=\"100%\">');
doc.write('<param name=movie value="' + fla + '">');
doc.write('<param name=quality value=high>');
doc.write('<embed src="' + fla + '" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"100%\" height=\"100%\"></embed></object>');
doc.write('<\/center><\/body><\/HTML>');
doc.close();
}