﻿
function DisableEnter(obj)
{ 
   // var key=event.keyCode;
    //if (Number(key) ==13)
      //  {
        //    tabE(obj)        
          //  return false;
        //}
    //else
      //  {            
        //    return true
        //}
    
}
function tabE(obj){
//var e=(typeof event!='undefined')?window.event:e;// IE : Moz

//var ele = document.forms[0].elements;
//for(var i=0;i<ele.length;i++){
//var q=(i==ele.length-1)?0:i+1;// if last element : if any other
//if(obj==ele[i]){ele[q].focus();break}
//}
//return false;
}
function setSize(obj) {//this.style.height='20px;'
}

function resize(obj) {
    //var htmlheight = document.body.parentNode.clientHeight;
    var windowheight = getPageSizeWithScroll('x')
    //if (windowheight > 0)
     windowheight = windowheight - 180
    var frame = document.getElementById(obj);
    //if (htmlheight < windowheight)
    frame.style.height = windowheight + "px";
}
function getPageSizeWithScroll(rWath) {
    if (window.innerHeight && window.scrollMaxY) {// Firefox         
        yWithScroll = window.innerHeight + window.scrollMaxY;
        xWithScroll = window.innerWidth + window.scrollMaxX;
    }
    else if (document.body.scrollHeight > document.body.offsetHeight) { // all but Explorer Mac
        yWithScroll = document.body.scrollHeight;
        xWithScroll = document.body.scrollWidth;
    }
    else {
        // works in Explorer 6 Strict, Mozilla (not FF) and Safari
        yWithScroll = document.body.offsetHeight;
        xWithScroll = document.body.offsetWidth;
    }
    //arrayPageSizeWithScroll = new Array(xWithScroll, yWithScroll);
    //alert( 'The height is ' + yWithScroll + ' and the width is ' + xWithScroll );
    if (rWath == 'x') { return xWithScroll }
    if (rWath == 'y') { return yWithScroll }
              
}     
