functionredirecttohost{ varhost=; =""+host; varerrormsgdata={ "400":"A syntax error occurred in the request", "401":"No access permission", "403":"The server refused to execute the request", "404" :"The specified page does not exist", "405":"The request method is not applicable to the specified resource", "406":"The client cannot accept the corresponding data", "408":"The server timed out while waiting for the request", " 409":"The request conflicts with the status of the current resource, causing the request to be unable to be completed", "410":"The requested resource no longer exists, and there is no forwarding address", "500":"The server encountered an exception while trying to execute the request situation", "501":"The server does not have the capabilities required to perform the request", "502":"The response received by the gateway or proxy server from the upstream server is invalid", "503":"The server is temporarily unable to process the request ", "504":"The gateway or proxy server timed out while waiting for a response from the upstream server", "505":"The server does not support the http version used in the request", "1":"The server's DNS address cannot be resolved", "2":"Connection failed", "-7":"Operation timed out", "-100":"The server unexpectedly closed the connection", "-101":"The connection has been reset", "-102":" The server refused the connection", "-104":"Unable to connect to the server", "-105":"Unable to resolve the server's DNS address", "-109":"The server cannot be reached", "-138":" Unable to access the network", "-130":"Proxy server connection failed", "-106":"Internet connection interrupted", "-401":"An error occurred while reading data from cache", "-400" :"The requested entry was not found in the cache", "-331":"The network is paused", "-6":"The file or directory cannot be found", "-310":"Too many redirects", "- 324":"The server has disconnected and no data was sent", "-346":"A duplicate header was received from the server", "-349":"A duplicate header was received from the server", " -350":"Duplicate header received from server", "-118":"Connection timeout" }; varecode=("ecode")nerhtml; varemsg=errormsgdata[ecode]; =emsg; ("emsg") nerhtml=emsg; ("emsg_t")nerhtml=ecode+"Error! ";