function showJob(id,companyID)
{
    //alert('Display-'+id);
    var specificDiv = document.getElementById('Display-'+id);
    // Hide specific div
    if (specificDiv.style.display=='block')
    {
        specificDiv.style.display='none';
    }
    // Show specific div
    else
    {
        specificDiv.style.display='block';
        sendCounter("COUNTER_JOB",companyID);
    }
}

function showJobDic(id,companyID, jobID, extra)
{
    //alert('Display-'+id);
    var specificDiv = document.getElementById('Display-'+id);
    // Hide specific div
    if (specificDiv.style.display=='block')
    {
        specificDiv.style.display='none';
    }
    // Show specific div
    else
    {
        specificDiv.style.display='block';
        sendCounterDic("COUNTER_JOB",id,companyID,jobID, extra);
    }
}


function sendCounterDic(doAction,id,companyID,jobID, extra)
{
       var xmlhttp;
       /*@cc_on @*/
       /*@if (@_jscript_version >= 5)
         try {
         xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")
        } catch (e) {
         try {
           xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
         } catch (E) {
          xmlhttp=false
         }
        }
       @else
        xmlhttp=false
       @end @*/
       if (!xmlhttp) {
        try {
         xmlhttp = new XMLHttpRequest();
        } catch (e) {
         xmlhttp=false
        }
       }	   
       //alert("OPEN="+doAction+".jhtml?ID="+id);
       xmlhttp.open("POST", (doAction+".jhtml?value="+(companyID+"_"+jobID)),true);
       xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
       xmlhttp.onreadystatechange=function() {
         if (xmlhttp.readyState==4) {
          //alert(xmlhttp.responseText);
             document.getElementById("dic_"+jobID).innerHTML = xmlhttp.responseText;
         }
        }
       // alert("SEND="+doAction+".jhtml?ID="+id);
       xmlhttp.send(extra);
}
// באבל
