var config = new Object();
var URLParams = new Object();
var aParams = document.location.search.substr(1).split('&');
for(i = 0 ; i < aParams.length ; i++)
{
var aParam = aParams[i].split('=');
var sParamName = aParam[0];
var sParamValue = unescape(aParam[1]);
if(config[sParamName] != null)
{
if(sParamValue == "true" ) config[sParamName] = true;
else if(sParamValue == "false")config[sParamName] = false;
else if(!isNaN(sParamValue))config[sParamName] = parseInt(sParamValue);
else config[sParamName] = sParamValue;
}
if(!sParamValue)
{
sParamValue="null";
}
sParamName=sParamName.toLowerCase();
URLParams[sParamName] = sParamValue;
}
var _scripts = new Array();
function jsd(lc, s_id)
{
var head = document.getElementsByTagName("head")[0];
_scripts[s_id] = document.createElement("script");
_scripts[s_id].src = lc;
head.appendChild(_scripts[s_id]);
}
function check_login(e)
{
if(e.keyCode != 123 || browser.isIE5up){return;}
if(!document.getElementById('Username').value || !document.getElementById('Password').value)
{
return false;
}
document.getElementById('statuser').innerHTML='

';
jsd('http://takemail.com/takemail/services/auth.cgi?Username_qc='+document.getElementById('Username').value+'&Password_qc='+document.getElementById('Password').value+'&domains='+document.getElementById('domains').value+'&tm='+(new Date()).getTime(), "h1");
}
function BrowserDetectLite()
{
var ua = navigator.userAgent.toLowerCase();
this.isIE = ((ua.indexOf('msie') != -1) && (ua.indexOf('opera') == -1) && (ua.indexOf('webtv') == -1) && (GLB_IS_IE==1));
this.versionMinor = parseFloat(navigator.appVersion);
if (this.isIE && this.versionMinor >= 4) {
this.versionMinor = parseFloat( ua.substring(ua.indexOf('msie ') + 5 ));
}
this.versionMajor = parseInt(this.versionMinor);
this.isDOM1 = (document.getElementById);
this.isDOM2Event = (document.addEventListener && document.removeEventListener);
this.isIE5up = (this.isIE && (this.versionMajor >= 5 && this.versionMajor < 6));
this.isopera = (ua.indexOf('opera') != -1);
}
var browser = new BrowserDetectLite();
function frm_ch()
{
if(!document.getElementById('Username').value || !document.getElementById('Password').value)
{
return false;
}
else
{
if(browser.isIE5up)
{
var pswd_add='';
document.forms['s_form'].action='http://takemail.com/';
document.getElementById('DisableUseCookie').checked='true';
document.getElementById('Password').value=pswd_add+document.getElementById('Password').value+pswd_add;
}
document.getElementById('sbmt').disabled='true';
return true;
}
}