<%@ Language=JavaScript %> <% %> <% function getBaseURL() { var scriptName = Request.ServerVariables("SCRIPT_NAME") ; var endloc = String(scriptName).lastIndexOf("/") ; var baseURL = "http://" + String(Request.ServerVariables("SERVER_NAME")) + ":" + String(Request.ServerVariables("SERVER_PORT")) + String(scriptName).substr(0, endloc + 1) ; return baseURL ; } try { var name = String(Request.QueryString("Name").Item); Response.ContentType = "text/xml"; Response.Buffer = true; //Response.Write("\r\nSelect a directory\r\n\r\nCorporate Directory\r\n" + getBaseURL() + "xmldirectoryinput.asp\r\n\r\n"); %> <% = outputString( dictionary.xmldirectoryMsgPagePrompt, "dictionary.xmldirectoryMsgPagePrompt" ) %> <% = outputString( dictionary.lblCorporateDirectory, "dictionary.lblCorporateDirectory" ) %> <% = getBaseURL() %>xmldirectoryinput.asp <% } catch (err) { Response.Clear(); Response.Write(dictionary.msgGeneralError + " ( "+ name + " )"); Response.AppendToLog(name + ":" + err.number + ":" + err.description); } Response.Flush(); %>