function dsrs1_form(){
if(document.dsrs1.en_prefix.value==""){
	jq_wang("#errmsg").show("slow");
	return false;
}else{
	jq_wang.ajax({
		type: "post",
		url: "searchrs.asp",
		timeout: 999999,
		dataType:"html",
		data:jq_wang("#dsrs1").formSerialize(),
		beforeSend:showRequest,
		success:showResponse
	});
	return false;
}
}	
function dsrs2_form(){
if(document.dsrs2.en_prefix.value==""){
	jq_wang("#errmsg2").show("slow");
	return false;
}else{
	jq_wang.ajax({
		type: "post",
		url: "searchrs.asp",
		timeout: 999999,
		dataType:"html",
		data:jq_wang("#dsrs2").formSerialize(),
		beforeSend:showRequest,
		success:showResponse
	});
	return false;
}
}
function dsrs3_form(){
if(document.dsrs3.cn_prefix.value==""){
	jq_wang("#errmsg").show("slow");
	return false;
}else{
	jq_wang.ajax({
		type: "post",
		url: "searchrs.asp",
		timeout: 999999,
		dataType:"html",
		data:encodeURI(jq_wang("#dsrs3").formSerialize()),
		beforeSend:showRequest,
		success:showResponse
	});
	return false;
}
}
function errMsgHide(errmsgid){
	jq_wang(errmsgid).hide("slow");
} 
function whoisrs_form(){
if(document.whoisrs.domain.value==""){
	jq_wang("#errmsg").show("slow");
	return false;
}else{
	jq_wang.ajax({
		type: "post",
		url: "whoisrs.asp",
		timeout: 999999,
		dataType:"html",
		data:jq_wang("#whoisrs").formSerialize(),
		beforeSend:showRequest,
		success:showResponse
	});
	return false;
}
}  
function indexreq(){
	display_search();
}

function showRequest() {
	jq_wang("#searchcont").html("<table align=center border=0 height=120><tr><td align=center valign=middle><img src=/template/images/loading.gif border=0 align=middle>&nbsp;正在查询，请稍候...</td></tr></table>");
	display_search();	
}

function showResponse(responseText)  {
	jq_wang("#searchcont").html(responseText);
	var divheight1 = $("searchtop").offsetHeight + $("searchcont").offsetHeight + $("searchbottom").offsetHeight;
	searchdiv.style.height = divheight1 + "px";
	//alert(divheight1);
} 
function checkDN(dnv,msgid){
	if(dnv.value!=""){
		jq_wang(msgid).hide("slow");
	}else{
		jq_wang(msgid).show("slow");
		dnv.focus();
	}
}

function switchTag(tag,content){
	//alert(tag+content);
	for(i=1; i <4; i++){
		if ("tag"+i==tag){
			document.getElementById(tag).className="div2";
		}else{
			document.getElementById("tag"+i).className="0";
		}if ("content"+i==content){
			document.getElementById(content).className="1";
		}else{
			document.getElementById("content"+i).className="hideinfo";
		}
		//document.getElementById("info_en_domain").className=content;
	}
}