﻿// JScript File

//Be sure the user entered a numeric value
function IsNumber(evt)
{
    var charCode = (evt.which) ? evt.which : event.keyCode
    if (charCode > 31 && (charCode < 48 || charCode > 57))
    {
        return false;
    }
    else
    {
        return true;
    }
}

function OpenAppWindow(sUrl, starget) 
{
	var newWindow;
	var sFeatures;
	var sHeight;
	var sWidth;
    
    //alert('HERE: OpenAppWindow');
	//get the screen width/height
	sHeight = screen.availHeight-60;
	sWidth = screen.availWidth-10;
	//create string that holds characteristics of new toolbarless window
	sFeatures = "scrollbars=yes,resizable=yes,top=0,left=0,status=yes,toolbar=no,menubar=no,location=no,titlebar=no,height=" + sHeight + ",width=" + sWidth;
	//open window
	newWindow = window.open(sUrl, starget, sFeatures);

	//give focus to new window
	newWindow.focus();
	
}//OpenAppWindow
