﻿// JScript File
function setFocus()
{
    var txtbox = document.getElementById('txtUserName');
    if (txtbox)
    {
        txtbox.focus();    
        txtbox.select();    
    }
}

function GetScreenResolution()
{
    var myWidth = 800;
    var myHeight = 600;
    if (screen.width) 
        myWidth = screen.width;
    if (screen.height)
        myHeight = screen.height;
    if ( myWidth < 800 ) {myWidth = 800;}
    if ( myHeight < 600 ) {myHeight = 600;}
    
    var hdnInput = document.getElementById('hdnScreenResolution');
    if (hdnInput)
        hdnInput.value = myWidth + '_' + myHeight;
}