﻿
$j = jQuery.noConflict();

//For Google Analytics
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
try 
{
    var pageTracker = _gat._getTracker("UA-15146539-1");
    pageTracker._trackPageview();
} 
catch(err) 
{}

function GetQueryStringValue(ji) 
{
    hu = window.location.search.substring(1);
    gy = hu.split("&");
    for (i=0;i<gy.length;i++) 
    {
        ft = gy[i].split("=");
        if (ft[0] == ji) 
        {
            return ft[1];
        }
    }
}

function IsCapsLockOn()
{
    e = (e) ? e : window.event;

    var charCode = false;
    if (e.which) 
        charCode = e.which;
    else if (e.keyCode)
        charCode = e.keyCode;

    var shifton = false;
    if (e.shiftKey)
        shifton = e.shiftKey;
    else if (e.modifiers)
        shifton = !!(e.modifiers & 4);

    if (charCode >= 97 && charCode <= 122 && shifton)
        return true;

    if (charCode >= 65 && charCode <= 90 && !shifton)
        return true;

    return false;
}

