function openLoginWnd()	//PCLUB ONLY
{
	try
	{
		var strServerName = new String(document.location.host);
		strServerName = strServerName.split(":")[0];
		strServerName += strSecurePort; // Add the Https port number to the server name...
		var re = /<servername>/;
		var strURL = "https://<servername>/pccore/pclogin.htm";
		strURL = strURL.replace(re, strServerName);
		
		document.location.href = strURL;
		
		//window.open(strURL, "wndLogin", "top=100,left=100,height=600,width=600,status=yes,titlebar=no,toolbar=no,menubar=no,location=no,scrollbars=yes");
	}
	catch(e)
	{
		alert("Error: Unable to open the login window!  Please try again and contact Technical Support if this problem continues.");
	}
}


function logOutSessionID(strSessionID)
{
	// create XMLDOM object
	var objLogoutXMLDOM = new ActiveXObject("Microsoft.XMLDOM");
	var objElem = objLogoutXMLDOM.createElement("LOGOUT");
	objLogoutXMLDOM.appendChild(objElem);
	var objRoot = objLogoutXMLDOM.documentElement;
		
	// add Session ID to XMLDOM object
	objElem = objLogoutXMLDOM.createElement("SESSION_ID");
	objRoot.appendChild(objElem);
	objElem.text = strSessionID;
    
	// create XMLHTTP object and use it to send login info to server
	var xmlRequest = new ActiveXObject("microsoft.xmlhttp");
	xmlRequest.open("POST", "/pccore/common/asp/auth.asp", false);
	xmlRequest.send(objLogoutXMLDOM);
}
 