//<!--
    /* THINKING FUNCTIONS -- used to show ajax working */
    //you need to create a div that is 200 x 100
    var tempX = 0
    var tempY = 0
    var IE = document.all ? true : false;
    document.onmousemove = getMouseXY;

    function targetDivThinking(divID){
        var thinkingDiv = document.getElementById("thinking");
        document.getElementById(divID).innerHTML = thinkingDiv.innerHTML;    
    }
    
    function thinking(status, delay){
        // If NS -- that is, !IE -- then set up for mouse capture
        if (!IE) document.captureEvents(Event.MOUSEMOVE);

        // Set-up to use getMouseXY function onMouseMove

        var thinkingDiv = document.getElementById("thinking");
        if(status){//true js code is processing or THINKING!!!
            thinkingDiv.style.top = tempY - 25;
            thinkingDiv.style.left = tempX - 150;
            thinkingDiv.style.cursor = "none";
            thinkingDiv.style.display = "block";
        }else{
            setTimeout('thinkingDone()', delay);
        }
    }

    function thinkingDone(){
        var thinkingDiv = document.getElementById("thinking");
        thinkingDiv.style.display = "none"
        thinkingDiv.style.top = 0;
        thinkingDiv.style.left = 0;
        thinkingDiv.style.cursor = "auto";
    }

    // Main function to retrieve mouse x-y pos.s
    function getMouseXY(e) {
      if (IE) { // grab the x-y pos.s if browser is IE
        tempX = event.clientX + document.body.scrollLeft
        tempY = event.clientY + document.body.scrollTop
      } else {  // grab the x-y pos.s if browser is NS
        tempX = e.pageX
        tempY = e.pageY
      }  
      // catch possible negative values in NS4
      if (tempX < 0){tempX = 0}
      if (tempY < 0){tempY = 0}  
      // show the position values in the form named Show
      // in the text fields named MouseX and MouseY
      return true
    }
    /* thinking functions done */
//-->