
      function jqueryHelper()
		{



		   this.convID = function( id )
			{
			   return '#'+id.replace(/:/g,"\\:").replace(/\./g,"\\.");
			}



         this.unescapeHTML = function( html_str )
			{
				var htmlNode = document.createElement("DIV");
				htmlNode.innerHTML = html_str;
				if(htmlNode.innerText)
				return htmlNode.innerText; // IE
				return htmlNode.textContent; // FF
			}



         this.call = function( url, method, params, callback_method )
         {
            params = typeof params == 'undefined' ? {} : params;
            params['getAjax'] = method;

            $.ajax({
               'url': url
            ,  'cache': false
            ,  'type': 'POST'
            ,  'data': params
            ,  'success': function( html ){
                  if ( typeof callback_method != 'undefined' && callback_method )
                  {
                     eval( callback_method );
                  }
               }
            ,  'error': function(){
               }
            });
         }



		   this.loadArea = function( url, method, destination_dom_id, params, jumpto_dom_id, callback_method )
		   {
            showContentLoadingSign();
		      if ( !url )
				{
					url = window.location.href;
				}

            params = typeof params == 'undefined' ? {} : params;
            params['getAjax'] = method;

				$.ajax({
					'url': url
		      ,  'cache': false
				,  'type': 'POST'
				,  'data': params
		      ,  'success': function( html ){
					if ( html != 'error' )
						{
							// $('#' + destination_dom_id ).html( html );
                     // IEbug hack
							$('#' + destination_dom_id + " ")[0].innerHTML = html;
						}
				      hideContentLoadingSign();
						if ( typeof jumpto_dom_id != 'undefined' && jumpto_dom_id != false )
						{
                     $.scrollTo( $('#' + jumpto_dom_id), 0 );
						}
						if ( typeof callback_method != 'undefined' && callback_method )
						{
							eval( callback_method );
						}
		         }
				,  'error': function(){
				      hideContentLoadingSign();
				   }
		      });
		   }

		}

