[script language = "jscript" runat = "server"] /*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--* * FUNCTION: fnErrorMessage(...) * DESCRIPTION: Writes an error message to a webpage. This function is used by many of the other functions in order to display a message when something goes wrong. For example, when a required parameter in another function is omitted by the programmer, then this function informs the programmer of the function-name, parameter-name and a description of what went wrong. All further output from the Web-server is then terminated. * PARAMETERS: -- sFunc {String} The name of the function in which the problem occurred -- sParam -- sDescription * STATUS: working- tested 40% * DEPENDENCIES: none * WORKING HISTORY: 2000-- created * DOCUMENTATION: http://www.geocities.com/matth3wbishop/eg/asp/ * SOURCE CODE: http://www.geocities.com/matth3wbishop/eg/asp/ * LANGUAGE: MS Jscript * NOTES: *--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*/ function fnErrorMessage(sFunc, sParam, sDescription) { if (sFunc == null){} if (sParam == null){} Response.Clear(); Response.Write( "
\n" + "ERROR:\n" + "\n" + " \n" + " \n" + "\n" + "\n" + " \n" + " \n" + "\n" + "\n" + " \n" + " \n" + "\n" + "
\n" + " Function: \n" + " " + sFunc + "
\n" + " Parameter: \n" + " " + sParam + "
\n" + " Description: \n" + " " + sDescription + "
\n" + "
\n"); Response.End(); } /* fnErrorMessage */ [/script]