function JobtelList()
{
	this.Domain="http://www.jobtel.cn";
	this.ServicePath="/Hr_API/JobServices/"
	//var this.url;
	//this.CompanyId="";
	this.Width="350";
	this.Height="300";
	this.Type="window";
	
}
JobtelList.prototype.Show=function()
{
	if(this.Type=="window")
	{
		
		this.Url=this.Domain+this.ServicePath+"window/?ComId="+this.ComID;
		window.open(this.Url,"popWindow","width="+this.Width+",height="+this.Height+",status=no,toolbar=no,menubar=no,location=no,scrollbars=yes")
		return false;
	}
	//ÆµµÀÒ³
	if(this.Type=="channel")
	{
		this.Url=this.Domain+this.ServicePath+"channel/?ComId="+this.ComID;		
		document.write('<link title="style" href="'+this.Domain+this.ServicePath+'channel/style.css" type="text/css" rel="stylesheet" />')
		ajaxGetContent(this.Url);			
		return false;
	}

	//Ç¶Èëµ½ÍøÒ³
	if(this.Type=="document")
	{
		this.Url=this.Domain+this.ServicePath+"document/?ComId="+this.ComID;		
		document.write('<link title="style" href="'+this.Domain+this.ServicePath+'document/style.css" type="text/css" rel="stylesheet" />')
		ajaxGetContent(this.Url);
		var JobtelList=document.getElementById("JobtelList");		
		return false;
	}
	
	if(this.Type=="float")
	{
		this.Url=this.Domain+this.ServicePath+"/float/?ComId="+this.ComID;
		document.write('<link title="style" href="'+this.Domain+this.ServicePath+'float/style.css" type="text/css" rel="stylesheet" />')
		ajaxGetContent(this.Url);
		var JobtelList=document.getElementById("JobtelList");
//		JobtelList.style.width=this.Width;
//		JobtelList.style.height=this.Height;
//		if(this.Position=="left")
//		{
//			JobtelList.style.left="10";
//		}
//		else
//		{
//			JobtelList.style.right="10";
//		}
		return false;
	}	
}
function ajaxGetContent(url)
{
	document.write("<script language=\"javascript\" charset=\"gb2312\" type=\"text/javascript\" src=\""+url+"\"><\/script>"); 
	return;
	document.write("<div id='ajaxCont'></div>");
	if (window.ActiveXObject) {
		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
	else if (window.XMLHttpRequest) {
		xmlHttp = new XMLHttpRequest();
	}
	xmlHttp.open("GET",url,true);
	
	xmlHttp.onreadystatechange = function()
	{
		 if (xmlHttp.readyState == 4) {
			if (xmlHttp.status == 200){	
				var cont=xmlHttp.ResponseText;				
				document.getElementById("ajaxCont").insertAdjacentHTML("afterBegin",cont);
			}
		 }
	}
	xmlHttp.send(null);	
}