
var Message=new Object;

function JobList(memberid)
{
    var obj="job" + memberid;
    if($(obj).style.display=='none')
    {
        if(Message[obj]==null)
        {
             AjaxMethod("/CompanyJobList.aspx", "get", "memberid=" + memberid, GetJobDetailBack, obj);  
        }
        else
        {
           $(obj).innerHTML=Message[obj];
        }
        $(obj).style.display="";
    }
    else
    {
        $(obj).style.display='none'
    }
}

function GetJobDetailBack(ajax,objID)
{
   Message[objID]=ajax.responseText;
   $(objID).innerHTML= Message[objID];
}

function GotIP(id)
{
     AjaxMethod("/Ajax/Ajax.ashx", "post", "method=getCip&id=" + id + "", GetIPBack, "");
}

function GotIPJob(id)
{
     AjaxMethod("/Ajax/Ajax.ashx", "post", "method=getJobIp&id=" + id + "", GetIPBack, "");
}

function GetIPBack(ajax)
{
    alert(ajax.responseText);
}