﻿window.contextData = "";
var CurrentSelectedTabID = "TabStripTab1";


function ClearTxtBoxDefault() {
    if (GetElementById('txtUsername').value == "Username")
        GetElementById('txtUsername').value = "";

}
//function SwapPasswordTB() {
//    //GetElementById('txtPasswordFake').style.display = "none";
//    //GetElementById('txtPassword').style.display = "";
//    GetElementById('txtPassword').focus();
//}
//function ReturnPasswordDefault() {
//    GetElementById('txtPasswordFake').style.display = "";
//    //GetElementById('txtPassword').style.display = "none";
//}

function formfocus() {
    GetElementById('txtUsername').select();
}
window.onload = formfocus;

function signup() {
    location.href = '/Signup/Signup.aspx';
}

function clickButton(e, buttonid) {
    var bt = GetElementById(buttonid);
    if (typeof bt == 'object') {
        if (navigator.appName.indexOf("Netscape") > (-1)) {
            if (e.keyCode == 13) {
                bt.click();
                return false;
            }
        }
        else if (navigator.appName.indexOf("Microsoft Internet Explorer") > (-1)) {
            if (e.keyCode == 13) {
                bt.click();
                return false;
            }
        }
    }
}