﻿// © Copyright Strategy Builders Inc. 2000-2009. All rights reserved.
//   
// The entire contents of this file is protected by International and
// U.S.Copyright Laws. Unauthorized reproduction, distribution, 
// redistribution and reverse engineering of any or all portion of the code 
// contained in this file is strictly prohibited and may
// result in severe civil and criminal penalties and will be
// prosecuted to the maximum extent possible under the law.
//  
// RESTRICTIONS 
//  
// THIS SOURCE CODE AND ALL RESULTING INTERMEDIATE FILES  
// ARE CONFIDENTIAL AND PROPRIETARY TRADE  
// SECRETS OF Strategy Builders Inc. 
//  
// THE SOURCE CODE CONTAINED WITHIN THIS FILE AND ALL RELATED
// FILES OR ANY PORTION OF ITS CONTENTS SHALL AT NO TIME BE  
// COPIED, TRANSFERRED, SOLD, DISTRIBUTED, OR OTHERWISE MADE 
// AVAILABLE TO OTHER INDIVIDUALS WITHOUT EXPRESS WRITTEN CONSENT  
// AND PERMISSION FROM Strategy Builders Inc. 
//  
// CONSULT THE END USER LICENSE AGREEMENT FOR INFORMATION ON 
// ADDITIONAL RESTRICTIONS. 
//  Farukh Tamboli

function OnWSError(error)

            {   
                var err_text;            

                err_text =
                "Stack Trace: " +  error.get_stackTrace() + "\r\n" +

                    "Error: " + error.get_message() + "\r\n" +

                    "Status Code: " + error.get_statusCode() + "\r\n" +

                    "Exception Type: " + error.get_exceptionType() + "\r\n" +

                    "Timed Out: " + error.get_timedOut();
                    
                    $get('txtErrorBox').value+=err_text;

            }

    function OnWSTimeout(timeout) {
        $get('txtErrorBox').value=timeout.get_message();
    }


