﻿// 全局函数 -- SQUARE
// 2008-1-12
// ===================
//文字显示限制 
//strlen  -- 文字的长度
//strname -- 文字的前置名
//strsum  -- 循环的长度
function lenstr(strlen,strname,strsum){
	for (i=1;i<=strsum;i++)
	{
		var str=document.getElementById(strname+i);
		var strContent=str.innerHTML;
		if(strContent.length>strlen){
			strContent=strContent.substring(0,strlen)+"...";
		}
		str.innerHTML = strContent
	}
}
//playSwf("134x49_torino.swf",134,49);
function playSwf(fPath,width,height) 
{	
	var str;
	str = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+width+"\" height=\""+height+"\">\n\r";
	str += "	<param name=\"movie\" value=\""+fPath+"\" />\n\r";
	str += "	<param name=\"quality\" value=\"high\" />\n\r";
	str += "	<param name=\"wmode\" value=\"transparent\" />\n\r";
	str += "	<embed src=\""+fPath+"\" quality=\"high\"  width=\""+width+"\" height=\""+height+"\" type=\"application/x-shockwave-flash\"></embed>\n\r";
	str += "</object>\n\r";
	document.write(str);
}
var xmlhttp555;
function getData555(cname, jobkey) {
    //获取用户填写的名称
    xmlhttp555 = new ActiveXObject("Microsoft.XMLHTTP");
    //将对象状态与事件相关联
    xmlhttp555.onreadystatechange = statechange555;
    //加载要链接的页面
    xmlhttp555.Open("POST", "/qiye/xhttp.aspx?id=job1&cname=" + escape(cname) + "&jobkey=" + escape(jobkey), true);
    //发送请求
    xmlhttp555.Send();
}
function getData556(jobkey) {
    //获取用户填写的名称
    xmlhttp555 = new ActiveXObject("Microsoft.XMLHTTP");
    //将对象状态与事件相关联
    xmlhttp555.onreadystatechange = statechange555;
    //加载要链接的页面
    xmlhttp555.Open("POST", "/qiye/xhttp.aspx?id=perkey&jobkey=" + escape(jobkey), true);
    //发送请求
    xmlhttp555.Send();
}
function statechange555() {
    //判断异步调用是否已经完成
    if (xmlhttp555.readystate == 4) {
        //判断完成的提示代码是否是OK状态
        if (xmlhttp555.status == 200) {
            //将返回数据作为参数，传递给填充方法
            //           alert(xmlhttp.responseText);
            var bk = xmlhttp555.responseText;
        }
    }
}