/*
  -------------------------------------------------------------------------
	                    JavaScript Form Validator 
                                Version 2.0.2
	Copyright 2003 JavaScript-coder.com. All rights reserved.
	You use this script in your Web pages, provided these opening credit
    lines are kept intact.
	The Form validation script is distributed free from JavaScript-Coder.com

	You may please add a link to JavaScript-Coder.com, 
	making it easy for others to find this script.
	Checkout the Give a link and Get a link page:
	http://www.javascript-coder.com/links/how-to-link.php

    You may not reprint or redistribute this code without permission from 
    JavaScript-Coder.com.
	
	JavaScript Coder
	It precisely codes what you imagine!
	Grab your copy here:
		http://www.javascript-coder.com/
    -------------------------------------------------------------------------  
*/
function Validador(frmname)
{
  this.formobj=document.forms[frmname];
	if(!this.formobj)
	{
	  alert("ERROR: No puede ser cargado el formulario: "+frmname);
		return;
	}
	if(this.formobj.onsubmit)
	{
	 
	 this.formobj.old_onsubmit = this.formobj.onsubmit;
	 this.formobj.onsubmit=null;
	}
	else
	{
		
	 this.formobj.old_onsubmit = null;
	}
	
	this.formobj.onsubmit=form_submit_handler;
	this.addValidation = add_validation;
	this.setAddnlValidationFunction=set_addnl_vfunction;
	this.clearAllValidations = clear_all_validations;
}
function set_addnl_vfunction(functionname)
{
  this.formobj.addnlvalidation = functionname;
}
function clear_all_validations()
{   
	for(var itr=0;itr < this.formobj.elements.length;itr++)
	{
		this.formobj.elements[itr].validationset = null;
	}
}
function form_submit_handler()
{
	for(var itr=0;itr < this.elements.length;itr++)
	{
		if(this.elements[itr].validationset && !this.elements[itr].validationset.validate())
		{ 
		  return false;
		}
		
	}
	if(this.addnlvalidation)
	{
	  str =" var ret = "+this.addnlvalidation+"()";
	  eval(str);
    if(!ret){return ret;}
	
	
	}
	return true;
}
function add_validation(itemname,descriptor,errstr)
{
  if(!this.formobj)
	{
	  alert("ERROR: No se puede asignar esta propiedad a este objeto del formulario");
		return;
	}//if
	var itemobj = this.formobj[itemname];
  if(!itemobj)
	{
	  alert("ERROR: No se puede obtener el objeto input llamado: "+itemname);
		return;
	}
	if(!itemobj.validationset)
	{
	  itemobj.validationset = new ValidationSet(itemobj);
	}
  itemobj.validationset.add(descriptor,errstr);
}
function ValidationDesc(inputitem,desc,error)
{
  this.desc=desc;
	this.error=error;
	this.itemobj = inputitem;
	this.validate=vdesc_validate;
	
}
function vdesc_validate()
{                                     
 
 if(!V2validateData(this.desc,this.itemobj,this.error))
 {
	 
	 //modifique
	 try{ 
		this.itemobj.focus();
		return false;
	 }
	 catch(ex)
	 {   
		 return false;
     }
	
		
 }
 
  
 return true;
}
function ValidationSet(inputitem)
{
    this.vSet=new Array();
	this.add= add_validationdesc;
	this.validate= vset_validate;
	this.itemobj = inputitem;
}
function add_validationdesc(desc,error)
{
  this.vSet[this.vSet.length]= 
	  new ValidationDesc(this.itemobj,desc,error);
}
function vset_validate()
{
   for(var itr=0;itr<this.vSet.length;itr++)
	 {
	   if(!this.vSet[itr].validate())
		 {
		   return false;
		 }
	 }
	 return true;
}
function validateEmailv2(email)
{
// a very simple email validation checking. 
// you can add more complex email checking if it helps 
    if(email.length <= 0)
	{
	  return true;
	}
    var splitted = email.match("^(.+)@(.+)$");
    if(splitted == null) return false;
    if(splitted[1] != null )
    {
      var regexp_user=/^\"?[\w-_\.]*\"?$/;
      if(splitted[1].match(regexp_user) == null) return false;
    }
    if(splitted[2] != null)
    {
      var regexp_domain=/^[\w-\.]*\.[A-Za-z]{2,4}$/;
      if(splitted[2].match(regexp_domain) == null) 
      {
	    var regexp_ip =/^\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\]$/;
	    if(splitted[2].match(regexp_ip) == null) return false;
      }// if
      return true;
    }
return false;
}
function V2validateData(strValidateStr,objValue,strError) 
{ 
    var epos = strValidateStr.search("="); 
    var  command  = ""; 
    var  cmdvalue = ""; 
    if(epos >= 0) 
    { 
     command  = strValidateStr.substring(0,epos); 
     cmdvalue = strValidateStr.substr(epos+1); 
    } 
    else 
    { 
     command = strValidateStr; 
    } 
    switch(command) 
    { 
        case "req": 
        case "required": 
         { 
		    
		   var dato=trim(objValue.value);  //nueva funcionalidad
		   objValue.value=dato;
		 
           if(eval(objValue.value.length) == 0) 
           { 
              if(!strError || strError.length ==0) 
              { 
                strError = objValue.name + " : Requerido Fallado"; 
              }//if 
              alert(strError); 
              return false; 
           }//if 
           break;             
         }//case required 
        case "maxlength": 
        case "maxlen": 
          { 
             if(eval(objValue.value.length) >  eval(cmdvalue)) 
             { 
               if(!strError || strError.length ==0) 
               { 
                 strError = objValue.name + " : "+cmdvalue+" caracteres máximo "; 
               }//if 
			   strError = objValue.name + "\n"+strError;
               alert(strError + "\n[Actual Longitud = " + objValue.value.length + " ]"); 
               return false; 
             }//if 
             break; 
          }//case maxlen 
        case "minlength": 
        case "minlen": 
           { 
             if(eval(objValue.value.length) <  eval(cmdvalue)) 
             { 
               if(!strError || strError.length ==0) 
               { 
                 strError = objValue.name + " : " + cmdvalue + " caracteres minimo  "; 
               }//if               
               alert(strError + "\n[Actual Longitud = " + objValue.value.length + " ]"); 
               return false;                 
             }//if 
             break; 
            }//case minlen 
        case "alnum": 
        case "alphanumeric": 
           { 
              var charpos = objValue.value.search("[^A-Za-z0-9]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
               if(!strError || strError.length ==0) 
                { 
                  strError = objValue.name+": Únicamente caracteres alfa-numéricos son permitidos "; 
                }//if 
                alert(strError + "\n [Error en la posición del caracter " + eval(charpos+1)+"]"); 
                return false; 
              }//if 
              break; 
           }//case alphanumeric 
        case "num": 
        case "numeric": 
           { 
              var charpos = objValue.value.search("[^0-9]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
                if(!strError || strError.length ==0) 
                { 
                  strError = objValue.name+": Únicamente se permiten dígitos "; 
                }//if               
                alert(strError + "\n [Error en la posición del caracter " + eval(charpos+1)+"]"); 
                return false; 
              }//if 
              break;               
           }//numeric 
        case "alphabetic": 
        case "alpha": 
           { 
              var charpos = objValue.value.search("[^A-Za-záéíóúñÑ]");  
			  if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
                  if(!strError || strError.length ==0)   
                { 
                  strError = "Únicamente caracteres alfabéticos son permitidos"; 
                }//if                             
                alert(strError + "\n [Error en la posición del caracter " + eval(charpos+1)+"]"); 
                return false; 
              }//if 
              break; 
           }//alpha 
		case "alnumhyphen":
			{
              var charpos = objValue.value.search("[^A-Za-z0-9\-_]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
                  if(!strError || strError.length ==0) 
                { 
                  strError = objValue.name+": caracteres permitidos son A-Z,a-z,0-9,- y _"; 
                }//if                             
                alert(strError + "\n [Error en la posición del caracter " + eval(charpos+1)+"]"); 
                return false; 
              }//if 			
			break;
			}
        case "email": 
          { 
               if(!validateEmailv2(objValue.value)) 
               { 
                 if(!strError || strError.length ==0) 
                 { 
                    strError = objValue.name+": Ingrese una dirección de Email válida "; 
                 }//if                                               
                 alert(strError); 
                 return false; 
               }//if 
           break; 
          }//case email 
        case "lt": 
        case "lessthan": 
         { 
            if(isNaN(objValue.value)) 
            { 
              alert(objValue.name+": Debe ser un número "); 
              return false; 
            }//if 
            if(eval(objValue.value) >=  eval(cmdvalue)) 
            { 
              if(!strError || strError.length ==0) 
              { 
                strError = objValue.name + " : debe ser menos que "+ cmdvalue; 
              }//if               
              alert(strError); 
              return false;                 
             }//if             
            break; 
         }//case lessthan 
        case "gt": 
        case "greaterthan": 
         { 
            if(isNaN(objValue.value)) 
            { 
              alert(objValue.name+": Debe ser un número "); 
              return false; 
            }//if 
             if(eval(objValue.value) <=  eval(cmdvalue)) 
             { 
               if(!strError || strError.length ==0) 
               { 
                 strError = objValue.name + " : debe ser más que "+ cmdvalue; 
               }//if               
               alert(strError); 
               return false;                 
             }//if             
            break; 
         }//case greaterthan 
        case "regexp": 
         { 
		 	if(objValue.value.length > 0)
			{
	            if(!objValue.value.match(cmdvalue)) 
	            { 
	              if(!strError || strError.length ==0) 
	              { 
	                strError = objValue.name+": Inválidos caracteres encontrados "; 
	              }//if                                                               
	              alert(strError); 
	              return false;                   
	            }//if 
			}
           break; 
         }//case regexp 
        case "dontselect": 
         { 
            if(objValue.selectedIndex == null) 
            { 
              alert("ERROR: dontselect command for non-select Item"); 
              return false; 
            } 
			 
            if(objValue.value == cmdvalue)   
            { 
             if(!strError || strError.length ==0) 
              { 
              strError = objValue.name+": Por favor, seleccione una opción "; 
              }//if                                                               
              alert(strError); 
              return false;                                   
             } 
             break; 
         }//case dontselect 
	}//switch 
	
	
    return true; 
}


// funciones nuevas

function trim(s){
s = s.replace(/\s+/gi, ' '); //sacar espacios repetidos dejando solo uno
s = s.replace(/^\s+|\s+$/gi, ''); //sacar espacios blanco principio y final

return s;
}

function validarCK(e) {
  return !(e.keyCode==86 && e.ctrlKey)
}


function soloAlfabetico(evento)
{  
 
evento = (evento) ? evento : window.event
var Codigo = (evento.which) ? evento.which : evento.keyCode

if(Codigo > 32 && (Codigo < 65 || Codigo > 90) && (Codigo < 97 || Codigo > 122) && (Codigo != 241) && (Codigo != 209) && (Codigo != 193) && (Codigo != 201) && (Codigo != 205) && (Codigo != 211) && (Codigo != 218) && (Codigo != 225) && (Codigo != 233) && (Codigo != 237) && (Codigo != 243) && (Codigo != 250)) 
return false;
else
return true; 
}

function soloNumeros(evento)
{
evento = (evento) ? evento : window.event
var Codigo = (evento.which) ? evento.which : evento.keyCode

if(Codigo > 31 && (Codigo < 48 || Codigo > 57)) 
return false;
else
return true; 
}

function desactiva(valor)
{
var elemento = document.getElementById(valor);
elemento.value="";
elemento.disabled = true;     
}


function activa(valor)
{
var elemento = document.getElementById(valor); 
elemento.disabled = false;     
}  

//validaciones especiales

function valoresCombos()
		{
	
			//////////////////// combos
			document.formUsr.estado.value=combos.document.cambia.ESTADO.value;
			document.formUsr.del_mun.value=combos.document.cambia.CIUDAD.value;
			document.formUsr.colonia.value=combos.document.cambia.COLONIA.value;
			document.formUsr.cp.value=combos.document.cambia.COD_POSTAL.value;		
			///////////////////////////
		}
		

//**************** TODAS LAS VALIDACIONES ESPECIALES DE UNA X MES *****************************************************************************************
function val_b(){
if(document.form_busqueda.parametros.value == document.form_busqueda.val_ini.value ){
	document.form_busqueda.parametros.value = "";}
}
function val_u(valor){

var elemento = document.getElementById(valor); 

if(elemento.value == "Usuario"){
	document.form_Login.username.value = "";}
if(elemento.value == "contraseña"){
	document.form_Login.password.value = ""; 
	document.getElementById('lugar_password').innerHTML="<input name=\'password\'  id=\'password_vis\' type=\'password\'   class=\'general\'  size=\'16\' >";
    document.form_Login.password.focus();
	document.form_Login.password.focus();
	}


}  
function generaCaja()
{
document.getElementById('lugar_password').innerHTML="<input name=\'password\'  id=\'password_vis\' type=\'text\'   class=\'general\' value=\'contrase&ntilde;a\' onClick=\'val_u(this.id);\'   onFocus=\'val_u(this.id);\'   size=\'16\' >";
}

// parte de login                 COMENTAR LAS VALIDACIONES
function asigna_destino(){
	if(document.form_Destino.select_Dest.value!="0"){
	document.form_Destino.action=document.form_Destino.select_Dest.value;
	document.form_Destino.submit();}
}
  
function valida_Login(){
verify = true;
if(document.form_Login.username.value.length <= 1){verify = false;}
else if(document.form_Login.passwordU.value.length <= 1){verify = false;}
else if(document.form_Login.username.value == "usuario"){verify = false;}
if(verify == true)
{
     
	//document.form_Login.password.value = hex_md5(document.form_Login.passwordU.value);
	document.form_Login.submit();               
}  
else
	alert("Por favor revisa que los datos sean correctos y vuelve a intentarlo.\n\rGracias.");
 
 
}



function recup_pass(){
if(document.form_Login.username.value == "usuario" || document.form_Login.username.value.length <= 1){
	alert("Por favor ingresa tu nombre de usuario y vuelve a intentarlo.\n\rGracias.");
	document.form_Login.username.value="";
	document.form_Login.username.focus();
	}
else{
	alert("En breve recibirás en tu correo electrónico la información solicitada.\n\rGracias.");
	document.form_Login.action = "../servlet/CtrlMandaPass";
	document.form_Login.submit();
}	
}
//***** home

function ver_comentariosPre(val){
document.form_ver_comenPre.clvpregunta.value=val;
document.form_ver_comenPre.submit();
}

function ver_comentarios(val){
document.form_ver_comen.clvtema.value=val;
document.form_ver_comen.submit();
}

function asigna_art(val){
	document.formA.clvart.value=val;
	document.formA.submit();
}

//////////////////////////////////////////////////////// AMEIFAC
function borrar_mensaje(form){
	if(form.ta_mensaje.value=="Escribe tu mensaje aquí :")
	form.ta_mensaje.value="";
	}
function val_text_msj()
{
	if(document.form_Mensaje.ta_mensaje.value=="Escribe tu mensaje aquí :")
	{
	alert("Ingresa un mensaje");
	document.form_Mensaje.ta_mensaje.value="";
	document.form_Mensaje.ta_mensaje.focus();
	return false;
	}
}
function val_text_msj_home()
{
	if(document.form_Mensaje_home.ta_mensaje.value=="Escribe tu mensaje aquí :")
	{
	alert("Ingresa un mensaje");
	document.form_Mensaje_home.ta_mensaje.value="";
	document.form_Mensaje_home.ta_mensaje.focus();
	return false;
	}
}

////////////////////////////////////////////////////////////////







//************************NO VOVER **********

function valRegUsr(){

	if(document.formUsr.celular.value.length != 10 && document.formUsr.campo_ad_1[0].checked  )
	{
		alert("ingresa tu número de celular con los 10 dígitos");
		document.formUsr.celular.focus();
		return false;
	}
	else if(document.formUsr.usa_inyeccion[0].checked && (document.formUsr.anio_antiguedad.value=="0000" || document.formUsr.anio_antiguedad.value==""))
	{
		alert("¿Desde que AÑO usas el anticonceptivo inyectable mensual de Bayer?");
		document.formUsr.anio_antiguedad.focus();
		return false;
	}
	else if(document.formUsr.usa_inyeccion[0].checked && (document.formUsr.mes_antiguedad.value=="00" || document.formUsr.mes_antiguedad.value==""))
	{
		alert("¿Desde que MES usas el anticonceptivo inyectable mensual de Bayer?");
		document.formUsr.mes_antiguedad.focus();
		return false;
	}
	else if(document.formUsr.usa_inyeccion[0].checked && (document.formUsr.dia_antiguedad.value=="00"|| document.formUsr.dia_antiguedad.value==""))
	{
		alert("¿Desde que DÍA usas el anticonceptivo inyectable mensual de Bayer?");
		document.formUsr.dia_antiguedad.focus();
		return false;
	}
	else if(document.formUsr.usa_inyeccion[0].checked && (document.formUsr.mes_ultima.value=="00" || document.formUsr.mes_ultima.value==""))
	{
		alert("¿En qué MES te aplicaste la última inyección ?");
		document.formUsr.mes_ultima.focus();
		return false;
	}
	else if(document.formUsr.usa_inyeccion[0].checked && (document.formUsr.dia_ultima.value=="00" || document.formUsr.dia_ultima.value==""))
	{
		alert("¿En qué DÍA te aplicaste la última inyección ?");
		document.formUsr.dia_ultima.focus();
		return false;
	}
	else if(document.formUsr.password.value != document.formUsr.password2.value){
	alert("Los campos de contraseña no coinciden"); document.formUsr.password.focus(); 
	    return false;
	}
	else{
		return true;
		}
	
	
}

function oculta(valor)
{
document.getElementById(valor).style.display='none'; 
}
function muestra(valor)
{
document.getElementById(valor).style.display=''; 
}

function valMiPerfil(){

	/*if(document.formUsr.celular.value.length != 10 && document.formUsr.campo_ad_1[0].checked )
	{
		alert("ingresa tu número de celular con los 10 dígitos");
		document.formUsr.celular.focus();
		return false;
	}
	
	
	else */
	
	
	/*if(document.formUsr.password.value==document.formUsr.password2.value)
	{
		return true;
	}
	else if(document.formUsr.password.value=="")
	{
	alert("La nueva contraseña no puede ser solo de espacios en blanco");
	document.formUsr.password.focus();
	return false;
	}
	else if(document.formUsr.password2.value=="")
	{
	alert("La verificación de la contraseña no puede ser solo de espacios en blanco");
	document.formUsr.password2.focus();
	return false;
	}
	else */
	
	if(document.formUsr.password.value != document.formUsr.password2.value)
	{
		document.formUsr.password.value=trim(document.formUsr.password.value);
	    document.formUsr.password2.value=trim(document.formUsr.password2.value);
		
			if(document.formUsr.password.value=="")
			{
			alert("La nueva contraseña no puede ser solo de espacios en blanco");
			document.formUsr.password.focus();
			return false;
			}
			else if(document.formUsr.password2.value=="")
			{
			alert("La verificación de la contraseña no puede ser solo de espacios en blanco");
			document.formUsr.password2.focus();
			return false;
			}
			else if(document.formUsr.password.value != document.formUsr.password2.value)
			{
			alert("Los campos de contraseña no coinciden"); document.formUsr.password.focus(); 
	    	return false;
			}
			else{
			return true;}
	
	}
	else{
		return true;
		}
}
/*
////////////medicos

function valEspRegMed(){

	if(document.formUsr.mas_info_cel_si.checked && document.formUsr.celular.value.length != 10)
	{
		alert("ingrese su número de celular con los 10 dígitos");
		document.formUsr.celular.focus();
		return false;
	}   
	else if(document.formUsr.password.value != document.formUsr.password2.value){
	alert("Los campos de contraseña no coinciden"); document.formUsr.password.focus(); 
	    return false;
	}
	else{
		document.formUsr.password.value = hex_md5(document.formUsr.password.value);
		return true;
		}
	
	
}




function valEspMiPerfil(){
	
	if(document.formUsr.mas_info_cel_si.checked && document.formUsr.celular.value.length != 10)
	{
		alert("ingrese su número de celular con los 10 dígitos");
		document.formUsr.celular.focus();
		return false;
	}
	else if(document.formUsr.campo_ad_3[0].checked && trim(document.formUsr.campo_ad_4.value)=="")
	{
		alert("¿Cuál fórmula toma actualmente su bebé ?");
		document.formUsr.campo_ad_4.focus();
		return false;
	}
	else if(document.formUsr.password.value != document.formUsr.password2.value){
	alert("Los campos de contraseña no coinciden"); document.formUsr.password.focus(); 
	    return false;
	}
	else{
		
			if(document.formUsr.password.value.length > 0)
			{
			  document.formUsr.password.value = hex_md5(document.formUsr.password.value);
			}     
		return true;
		}

}

/////////////////pendiente
function operacion(){
	document.form_Login_med.password.value = hex_md5(document.form_Login_med.password.value); 
	}
//////////////////////////
function valEspMiPerfilMed(){
	
	if(document.formUsr.mas_info_cel_si.checked && document.formUsr.celular.value.length != 10)
	{
		alert("ingrese su número de celular con los 10 dígitos");
		document.formUsr.celular.focus();
		return false;
	}
	else if(document.formUsr.password.value != document.formUsr.password2.value){
	alert("Los campos de contraseña no coinciden"); document.formUsr.password.focus(); 
	    return false;
	}
	else{
		
			if(document.formUsr.password.value.length > 0)
			{
			  document.formUsr.password.value = hex_md5(document.formUsr.password.value);
			}     
		return true;
		}

}


////////////////////////////////////////////////////



function colocaFoco(valor)    
{
	if(valor==34)
	document.formUsr.email.focus();
	else
	document.formUsr.cedula.focus();

	}
	

*/


/*********************************************** 

* IFrame SSI script II- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com) 

* Visit DynamicDrive.com for hundreds of original DHTML scripts 

* This notice must stay intact for legal use 

***********************************************/ 

//Input the IDs of the IFRAMES you wish to dynamically resize to match its content height: 

//Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none: 

//IMPORTANTE EL NOMBRE DEL IFRAME 

var iframeids=["barra_der","preg_1","preg_2","mensajes_0","mensajes_1","mensajes_2"]   

//Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended): 

var iframehide="yes" 

var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1] 

var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers 

function resizeCaller() { 

var dyniframe=new Array() 

for (i=0; i<iframeids.length; i++){ 

if (document.getElementById) 

resizeIframe(iframeids[i]) 

//reveal iframe for lower end browsers? (see var above): 

if ((document.all || document.getElementById) && iframehide=="no"){ 

var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i]) 

tempobj.style.display="block" 

}

} 

} 

function resizeIframe(frameid){ 

var currentfr=document.getElementById(frameid) 

if (currentfr && !window.opera){ 

currentfr.style.display="block" 

if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax 

currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight; 

else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax 

currentfr.height = currentfr.Document.body.scrollHeight; 

if (currentfr.addEventListener) 

currentfr.addEventListener("load", readjustIframe, false) 

else if (currentfr.attachEvent){ 

currentfr.detachEvent("onload", readjustIframe) // Bug fix line 

currentfr.attachEvent("onload", readjustIframe) 

} 

} 

} 

function readjustIframe(loadevt) { 

var crossevt=(window.event)? event : loadevt 

var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement 

if (iframeroot) 

resizeIframe(iframeroot.id); 

} 

function loadintoIframe(iframeid, url){ 

if (document.getElementById) 

document.getElementById(iframeid).src=url 

} 

if (window.addEventListener) 

window.addEventListener("load", resizeCaller, false) 

else if (window.attachEvent) 

window.attachEvent("onload", resizeCaller) 

else 

window.onload=resizeCaller   



