function addLoadEvent(fn)
{
    if (window.addEventListener)
        window.addEventListener('load', fn, false)
    else if (window.attachEvent)
        window.attachEvent('onload', fn);
}

var qsParm = new Array();
function qs() {
	var query = window.location.search.substring(1);
	var parms = query.split('&');
	var contactUsField = document.getElementById('contactUsLogin');
	var LogOutPage = document.getElementById('LogOutHeader');
	 
	if(LogOutPage){
		document.getElementById("tryFree").style.display = 'block';
		if (contactUsField){
			document.getElementById("contactUsLogin").style.display = 'block';
		}
	}
	
	for (var i=0; i<parms.length; i++) {
		var pos = parms[i].indexOf('=');
			if (pos > 0) {
				var key = parms[i].substring(0,pos);
				if (key == "Status"){
					document.getElementById("tryFree").style.display = 'none';
					document.getElementById("contactUsLogin").style.display = 'none';					
				}
				if (key == "question"){
					var val = parms[i].substring(pos+1);
					window.location.hash= val;
					showHide(val);
				}				
			}
	}
} 
	
	
function pmidqs() {
	var loggedinpage = document.getElementById('mainNavLoggedIn');
	
	if (loggedinpage) {
		document.getElementById("tryFree").style.display = 'none';
		document.getElementById("forgotlogin").style.display = 'none';
	}
}