﻿    var esIE;
    if(window.innerHeight) esIE=false;
    else esIE=true;

    var ajustesLocales = false;

    function AnchoPantalla()
    {
        var obj=document.getElementById("checkpoint");
        var valor;
        if(obj) valor=obj.offsetLeft;
        else return -1;
        if(valor<750) valor=750;
        return valor;
    }

    function AltoPantalla()
    {
       var obj=document.getElementById("checkpoint");
       var valor;
       if(obj) valor=obj.offsetTop;
       else return -1;
       if(valor<430) valor=430;
       return valor;
    }


    function AjustarPantalla()
    {
      var obj=document.getElementById("contenedor");
      if(obj)
      {
          obj.style.left="10px";
          obj.style.top="10px";
          obj.style.height=(AltoPantalla()-40)+"px";
          obj.style.width=(AnchoPantalla()-40)+"px";
      }
      AjustarContenido();
      if(ajustesLocales) AjustesLocales();
    }
    
    function AjustarContenido()
    {
      var objExt=document.getElementById("contenidoExterno");
      var objInt=document.getElementById("contenidoInterno");
      if((objExt)&&(objInt))
      {
        if(esIE) 
        {
        	objInt.style.width=(AnchoPantalla()-90)+"px";
        	objExt.style.overflow="auto";
        }
        else 
        {
        	objInt.style.width=(AnchoPantalla()-90)+"px";
        	objExt.style.overflow="visible";        	
        }
        
        objExt.style.height=(AltoPantalla()-165)+"px";
        
      }
      
    }


 
    
    function AjustarAltoPropuesta()
    {
      AjustarPantalla();
      var objInt=document.getElementById("ctl00_ContentPlaceHolderUsu_divResultado");
        
      if(objInt)  
      {
        objInt.style.height=(AltoPantallaPropuesta()+320)+"px";
        
        
      }
    }
    function AltoPantallaPropuesta()
    {
       var obj=document.getElementById("ctl00_ContentPlaceHolderUsu_checkpointPropuesta");
       var valor;
       if(obj) valor=obj.offsetTop;
       else return -1;
       if(valor<430) valor=430;
       return valor;
    }
