var myname = GetCookie("LoginLoginName");
	var currentPageURL = window.location;
	/** define common used elements **/
	var monsterLogo = "";
	var blockA = "<span id='loginIOAccountInfo'>";
	if ( myname == null) {
		mychip = GetCookie("LoginInfo");
		if (mychip != null) {
			mycookielist = mychip.split("|");
			myname = mycookielist[2];
		} // check mychip value
	} // grant myname from LoginInfo
	if ( myname != null) {
		if ( myname.match(/[a-z]|[A-Z]/g)) {
			document.write(blockA + "Welcome, " + myname + "! <a href='http://www.military.com/Membership/Membership_Index/'>My Account</a>&nbsp;|&nbsp;<a href='http://www.military.com/Logout?strRedirectURL=" + currentPageURL + "'>Logout</a></span>" + monsterLogo);
		} else {
			document.write(blockA + "Welcome! <a href='http://www.military.com/Membership/Membership_Index/'>My Account</a>&nbsp;|&nbsp;<a href='http://www.military.com/Logout?strRedirectURL=" + currentPageURL + "'>Logout</a></span>" + monsterLogo);
		}
	} else { //there no username
		document.write(blockA + "<a href='http://www.military.com/Registration/Login/?strGotoURL=" + currentPageURL + "'>Login</a>.&nbsp;");
		document.write("Not a member? <a href='http://www.military.com/Registration/Universal_Registration_Page?strGotoURL=" + currentPageURL + "'>Join now</a></span>" + monsterLogo);
	}
	