var hdreturn;//保存返回值

//将URL显示的网页内容填充入ID值的值中
/*function xmlhttp(id,url){
var xmlHttp=false;

try {
  xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
  try {
    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (e2) {
    this.xmlHttp = false;
  }
}

if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
  xmlHttp = new XMLHttpRequest();
}
//eval(id+"=\"正在载入中...\"");
xmlHttp.open("GET",url,false);
var ival;
var funceval=function(sid)
{
if(xmlHttp.readyState==4)
{
hdreturn=xmlHttp.responseText;

if(ival) 
{
	clearInterval(ival);
	ival = null;

}
}
}
ival=setInterval(funceval,13);
funceval(id);
xmlHttp.send(null);
}*/
function xmlhttp(id,surl)
{

}
//传入表ID名,行标记名,找出标记值相等的一行
function getrowid(tableid,valueid,val)
{
var rowid=null;
cmdstr="for(i=0;i<"+tableid+".rows.length;i++){";
cmdstr+="if("+tableid+".rows[i]."+valueid+"==\""+val+"\")";
cmdstr+="{rowid=i;}"
cmdstr+="}";
eval(cmdstr);
if(rowid!=null)
	{
	return rowid;
	}
}

function br_enter(from_flag,to_flag,objtext)
{
str=objtext;
while(1)
	{
	if(str.indexOf(from_flag)==-1)
		{
		break;
		}
	else
		{
		str=str.replace(from_flag,to_flag);
		}
	}
return str;
}
  function lang_up(lanuage)
  {
xmlhttp("hdreturn","phpmodule/lau.php"+window.location.search+"&lanuage="+lanuage);this.location.href=window.location.pathname+"?"+hdreturn;
  }
