
	var agent_isIE = true;
	var agent_isNS = 0;
	var agent_isMac = 0;
	var agent_isAOL = 0;
	var H_URL_BASE = ""
	var NoMax = 0
	var H_VER='1.5'
	var h_win=''

	if (((agent_isNS) || (agent_isIE) || (agent_isMac)) && (navigator.appVersion.indexOf("4.")>=0)) {
		bScreen = true;
	} else {
		bScreen = false;
	}

	function GetClientURL() {
		return escape(document.location.protocol + "//" + document.location.hostname)
	}

	function GetClientParams() {
		return escape(document.location.search)
	}

	function SniffSizing() {
		fudgeW = 0
		if (agent_isMac==true) {
			if (agent_Major == 4) {
				fudgeW = 7
				mac_heightoffset = 1.7
				startbarH = (screen.height-screen.availHeight)
				startbarW = (screen.width-screen.availWidth)
			} else {
				fudgeW = 2
				mac_heightoffset=0
				startbarH = 0//(screen.height-screen.availHeight)
				startbarW = (screen.width - screen.availWidth)
			}
			if(agent_isAOL==true) {
				WIDTH = 248
				aoltoolbar = 70
			} else {
				if(agent_Major==4) {
					WIDTH = 230
				} else {
					WIDTH = 230
				}
				aoltoolbar=0
			}
		} else {
			mac_heightoffset = 0
			startbarH = 0
			startbarW = 0
			if(screen.width <= 800) {
				WIDTH = 180 //180
			} else {
				WIDTH = 230 //230 // This is MY monitor
			}
			if(agent_isAOL==true) {
				aoltoolbar = 150
			} else {
				aoltoolbar=0
			}
		}
	}

	function SizeforHelp() {
		if(agent_isNS && (screen.availWidth - WIDTH != window.innerWidth) && agent_Major < 5) {
			top.window.resizeTo(screen.availWidth - WIDTH - (window.outerWidth - window.innerWidth), screen.availHeight - (window.outerHeight-window.innerHeight))
			top.window.moveTo(0,(startbarH * mac_heightoffset)+aoltoolbar)	
		} else {
			help_h=help_h - startbarH - aoltoolbar
			if(agent_isAOL==false || agent_isMac==true) {   //This is MY PC.
				top.window.resizeTo((screen.availWidth - WIDTH - (startbarW*fudgeW))-10, screen.availHeight - startbarH-aoltoolbar)
				top.window.moveTo(0,(startbarH * mac_heightoffset)+aoltoolbar)
			}
		}
	}

function DoHelp(bLocTestWindows, strURL){
//***************************
// I added the following parameter on the function DoHelp() : strURL so we could have dynamic help on any page.
//***************************
	//document.domain = getCurrentDomain()
	var domaincheck = document.domain

	//bSearch is set in calling page
	Topic_URL="INI="+H_CONFIG+"&H_APP="+escape(L_H_APP)

	if (bSearch==true) {
		//do context sensative search
		Topic_URL = "?"+Topic_URL+"&SearchTerm="+escape(H_KEY)+"&S_Text="+escape(L_H_TEXT)
	} else {	
		//jump directly to topic
		Topic_URL = "?Topic="+H_TOPIC+"&"+Topic_URL
	}

	//name the window, so that topic from Help window can change URL of main app window.
	window.name="AGMain";

	if(agent_isAOL==false || agent_isMac==true) {
		//for Non AOL-WIN browsers
		myURL = H_URL_BASE+"/helpwindow.asp"+Topic_URL+"&BrandID="+H_BRAND+"&Filter="+H_FILTER+"&H_VER="+H_VER
	} else {
		//for AOL-WIN versions. AOL-WIN have problems displaying after redirection & don't resize well
		myURL = H_URL_BASE+"/frameset.asp"+Topic_URL+"&BrandID="+H_BRAND+"&Filter="+H_FILTER+"&H_VER="+H_VER
	}

	myURL = myURL + "&NoMax="+NoMax + "&v1="+GetClientURL() + "&v2=" + GetClientParams()

	if ("" != "") {
		myURL = myURL + "&contactUs=" + escape("");
	}

	var agent_MSNMajor = ''
	var agent_MSNMinor = ''
	var agent_isWebTV = (agent.indexOf('webtv')>0)
	var agent_isMSNCompanion = (agent.indexOf('msn companion') >= 0)

	if (agent_isMSNCompanion == false) {
		if (agent.indexOf('msn ')>0) {
			version = version.substr(version.indexOf("msn ")) //get past msn and the space
			agent_MSNMajor = version.substring(version.indexOf(".")-1,version.indexOf("."))
			if (agent_MSNMajor >= 6) {
				agent_isMSN = true
				if (version.indexOf(0,";")>0) {
					agent_MSNMinor = version.substring(version.indexOf(".")+1, version.indexOf(";"))
				} else {
					agent_MSNMinor = version.substring(version.indexOf(".")+1, version.indexOf(")"))
				}
			} else {
				agent_isMSN = false
			}
		}
	}	

	if (agent_isMSN && agent_MSNMinor != '0b1') {
		if(screen.width <= 800) {
			WIDTH = 180 //180
		} else {
			WIDTH = 230 //230  // I'm not this monitor
		}
		window.external.showHelpPane(myURL, WIDTH)
		//h_win=window.open(myURL,"_help")
	} else if (agent_isWebTV || agent_isMSNCompanion) {
		//webtv doesn't handle window.open very well, so just change the current windows href
		top.location.href=myURL
	} else {
		if (bLocTestWindows == null)
			windowName = '_help'
		else
			windowName = '_help'+Math.floor(Math.random()*100)

		//set defaults for Help window size for 3.x browsers
		help_w=230;help_h=450;help_l=640-help_w;help_t=0;
		//////////////////
		// orginal of line above
		//     help_w=230;help_h=450;help_l=640-help_w;help_t=0;
		//////////////////
		//bScreen is set by calling page - bScreen means can do screen.availWidth stuff
		if(bScreen == true) {
			SniffSizing()
			if (NoMax == 0) SizeforHelp()
				help_w = WIDTH;
				help_h = screen.availHeight - 38;
				help_l = screen.availWidth - WIDTH - 10;
				w_dressing = "toolbar=0,status=0,menubar=0,width="+help_w+",height="+help_h+",left="+help_l+",top="+help_t+",resizable=1"
		} else {
			//3.x browsers
			w_dressing = "toolbar=0,status=0,menubar=0,width="+help_w+",height="+help_h+",,,resizable=1"
		}
		if(bScreen == true && agent_isNS == false && h_win != null && agent_isMac == false && agent_Major ==4) {
			if (H_URL_BASE.indexOf(domaincheck) > -1 && !(h_win.closed)) {
				h_win.name=''
				h_win.close()
			} else {
				h_win = null
			}
		}
		bResize = false
//***************************
//I added the following line:
myURL = "../help/HELP_index.asp?strURL=" + strURL;
//***************************
		h_win=window.open(myURL,windowName, w_dressing)
		if(agent_isNS && agent_isMac)
		h_win=window.open(myURL,windowName, w_dressing);
	}
}
	//set the document.domain to a subdomain everytime .js file is loaded.
	var ap = navigator.appName.toLowerCase()
	var version = navigator.appVersion.toLowerCase()
	var agent = navigator.userAgent.toLowerCase()
	var agent_isMSN = (agent.indexOf('msn 6') >= 0)
	var isNS = ap.indexOf('netscape') >= 0
	var isver4 = version.substr(0,1) == '4'
	//if (!(isNS && isver4))
	// if (!agent_isMSN)
	// setCurrentDomain()
	var L_H_APP = "MSN+Hotmail";
	var H_CONFIG = "hotmailv4.ini";
	var bSearch = false;
	var H_TOPIC = "";
	//***************************
	//I added the following lines:
	var H_KEY = "";
	var L_H_TEXT = "";
	//***************************

	if (H_KEY.toLowerCase().indexOf('htm') == -1) {
		bSearch = true;
	} else {
		bSearch = false;
		H_TOPIC = H_KEY;
	}
	var H_BRAND = '';
	var H_FILTER = '';
	if (((agent_isNS) || (agent_isIE) || (agent_isMac)) && (navigator.appVersion.indexOf("4.")>=0)) 
		bScreen = true;
	else
		bScreen = false;

	var agent_Major = 0	// an integer;
	if (agent_isIE && navigator.appVersion.indexOf("MSN") == -1) {
		agent_Major = navigator.appVersion.substr(navigator.appVersion.indexOf("MSIE") + 5,navigator.appVersion.indexOf("."));
		agent_Major = parseInt(agent_Major); 
	}
	if (agent_isNS) 
		agent_Major = parseInt(navigator.appVersion.substr(0,2));
	var alphaChars = "abcdefghijklmnopqrstuvwxyz";
	var digitChars = "0123456789";
	var asciiChars = alphaChars + digitChars + "!\"#$%&'()*+,-./:;<=>?@[\]^_`{}~";
	var folderID = "";
	ie = document.all?1:0
	ns4 = document.layers?1:0
	dodiv=0;
	function isASCII(str){
	var v_len = str.length;
	var i;
	for (i = 0; i < v_len; i++) {
		if (asciiChars.indexOf(str.charAt(i)) == -1)
			return false;
	}
	return true;
	}
