﻿function DisplayNone(Id) { document.getElementById(Id).style.display = 'none'; }
function DisplayBlock(Id) { document.getElementById(Id).style.display = 'block'; }
function collapse(objId) {	
	var obj = document.getElementById(objId);
	if (obj.style.display == "none")
		obj.style.display = "block";
	else
		obj.style.display = "none";
 }
 function BookmarkPage() {
	
	var Browser = navigator.userAgent;
	if (Browser.indexOf("MSIE") > -1) {
		if (parseInt(navigator.appVersion) >= 4)
			window.external.AddFavorite(window.location.href, document.title);
	}
	else if (Browser.indexOf("Firefox") > -1)
		window.sidebar.addPanel(document.title, window.location.href,"");
	else {
		var tools = "resizable,toolbar=no,location=no,scrollbars=no,width=400,height=400,left=0,top=0";
		newWindow = window.open('/Help/Bookmarking.aspx', 'newWin', tools);
		newWindow.focus();
	}
}
// Popups
var newWindow = null;
function closeWin() {
    if (newWindow != null) {
        if (!newWindow.closed)
            newWindow.close();
    }
}
function popUpWin(url, strWidth, strHeight) {
    closeWin();
    var tools = "";
    tools = "resizable,toolbar=no,location=no,scrollbars=1,width=" + strWidth + ",height=" + strHeight + ",left=0,top=0";
    newWindow = window.open(url, 'newWin', tools);
    if (newWindow != null)
        newWindow.focus();
}
function HideSurveyLink() {
    document.getElementById('SurveyLink').innerHTML = "";
}

function QueryString(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];
        }
    }
}