// JavaScript Document
function getWindowSize(){
windowWidth =  window.innerWidth;
windowWidth = (windowWidth)? windowWidth : document.documentElement.clientWidth;
windowWidth = (windowWidth)? windowWidth : document.body.clientWidth;
windowHeight =  window.innerHeight;
windowHeight = (windowHeight)? windowHeight: document.documentElement.clientHeight;
windowHeight = (windowHeight)? windowHeight: document.body.clientHeight;  
return {'width': windowWidth, 'height': windowHeight};
}

function getPageSize(){
var windowSize = getWindowSize()
var xScroll = document.body.scrollWidth;
var yScroll = (window.innerHeight && window.scrollMaxY)? window.innerHeight + window.scrollMaxY : document.body.scrollHeight;
var pageWidth = (xScroll < windowSize.width)? windowSize.width : xScroll;  
var pageHeight = (yScroll < windowSize.height)? windowSize.height : yScroll;
return {'width': pageWidth, 'height': pageHeight};
}

function IsNumeric(sText){
var ValidChars="0123456789.";
var IsNumber=true;
var Char;


for (i = 0; i < sText.length && IsNumber == true; i++) 
{ 
Char = sText.charAt(i); 
if (ValidChars.indexOf(Char) == -1) 
{
IsNumber = false;
}
}
return IsNumber;

}