   function ProcessChatRequest()
   {
      var objAjaxResponse = _chat_link.ProcessChatRequest(document.location.pathname);
      if(null != objAjaxResponse.error) // error in AJAX // throw an exception in codebehind to test
      {
         DisplayErrorMessage ( objAjaxResponse.error.description );
      }  
      else
      {
         if(objAjaxResponse.value[0])   // AJAX suceeded
         {
            // open the chat browser window
            window.open(objAjaxResponse.value[1],'myChatWin','status=no,toolbar=no,location=no,menu=no,scrollbars=yes, resizable=yes,width=780,height=630');
         }
         else  // can't chat at the moment
         {
            DisplayErrorMessage ( objAjaxResponse.value[1] );
         }   
      }
   }
   function DisplayErrorMessage(strErr)
   {
      pc = document.getElementById("chat_panelChat"); // no included control prepended name to contend with
      if(null == pc)
      pc = document.getElementById("_ctl3_chat_panelChat");
     
      //nl = document.getElementsByName("pcx");
      // however this does not work.
      pc.innerHTML = '<P class="txtErrMain" >' + strErr + '</P>';
   }

