﻿
function linkbuttonclick(msg)
{    
     var dimens;
     var mine;
     
     var L = screen.width;
     var H = screen.height;
     
     if (navigator.appName.toUpperCase() == "NETSCAPE")
     {
       //Firefox
        dimens = "innerWidth=1000, innerHeight=616,";
        L = Math.round((L-1000)/2);
        H = Math.round((H-616)/3);
        
        //Google chrome
        //dimens = "innerWidth=950,innerHeight=560," ;
        //L = Math.round((L-950)/2);
        //H = Math.round((H-560)/3);
       
       
        //alert( navigator.appCodeName+":"+navigator.appName);
        
        mine = window.open('http://www.sohsoft.com/quickplon/pupina.aspx','qpestimator', dimens+"screenX="+L+",screenY="+H);
     }
     else
     {
        dimens="width=900,height=555,";
        L = (L-900)/2;
        H = (H-555)/3;
        mine = window.open('http://www.sohsoft.com/quickplon/pupina.aspx','qpestimator', dimens+"left="+L+",top="+H+",screenX=0,screenY="+H);
     
     }
     
     if(!mine || mine.closed || typeof mine.closed == 'undefined')
     {
       alert(msg);
     }       
} 


function Screenextend() 
{
   try
   { 
         var i =  1;
         var contrl = document.getElementById("L"+i);
         while (contrl != null)
         {
          
          
            if (navigator.appName.toUpperCase() == "NETSCAPE") 
               contrl.style.visibility="hidden";
            else
               contrl.style.visibility="hidden";
               //document.getElementById("firstcolumn").removeChild(contrl);
               
            i+=1;
            contrl = document.getElementById("L"+i);
         }
          
          contrl = document.getElementById("TextArea1");
                       
          if (contrl != null )
          { 
            var H =screen.height; 
                          
            if (H<=700)
               contrl.rows = 27;
            else if (H<=750)
               contrl.rows = 30;
            else if (H<=800) 
               contrl.rows = 34; 
            else if (H<=900) 
               contrl.rows = 37;
            else if (H<=1800) 
               contrl.rows = 42;
            else
               contrl.rows = 24;
           
          }
          
            
    }
    catch(except)
    {
       alert(except.message);
    }  
    
 
   
}
     
