﻿/*HACK ADDED BY SHYAM ON NOV 8 2011 FOR MSSB*/
function silentErrorHandler() { return true; }
window.onerror = silentErrorHandler;

function chkMSSB(UserID) {
	if (UserID.toLowerCase().indexOf('@mssb.com') > 0) {
		document.getElementById('tbProcessing').style.display = '';
		document.getElementById('tbPassword').style.display = 'none';
		document.getElementById('tbLogin').style.visibility = 'hidden';
		document.getElementById('tbRemember').style.visibility = 'hidden';
		document.location = 'ssllogin.aspx?u=' + Base64.encode(UserID);
	}
}

function SetMSSBUserID(UserID, Encode) {
	document.getElementById('ctl00_cphMain_txtLogin').value = (Encode == 'Y' ? Base64.decode(UserID) : UserID);
	document.getElementById('ctl00_cphMain_txtPassword').focus();
}
/*END - HACK ADDED BY SHYAM ON NOV 8 2011 FOR MSSB*/

