document.write("<script language='javascript' type='text/javascript' src='../hsp_admin/adminjs/jquery.js'></script>")
function officeshop(n,m,topname,bottmname,topclass,bottmclass){
for(i=0;i<m;i++){
if(i==n){
document.getElementById(topname+"_"+i).className=topclass
document.getElementById(bottmname+"_"+i).style.display="block"
if(topname=='office'){
document.getElementById(topname+"_"+bottmname+"_"+i).style.display="block"
document.getElementById("active").value=i}}else{
if(topname=='office'){
document.getElementById(topname+"_"+bottmname+"_"+i).style.display="none"	  
	  }
document.getElementById(topname+"_"+i).className=bottmclass
document.getElementById(bottmname+"_"+i).style.display="none"		
}}}
function officeshopc(n,m,topname,bottmname,topclass,bottmclass){
for(i=0;i<m;i++){
if(i==n){
document.getElementById(topname+"_"+i).className=topclass
document.getElementById(bottmname+"_"+i).style.display="block"
}else{

document.getElementById(topname+"_"+i).className=bottmclass
document.getElementById(bottmname+"_"+i).style.display="none"	
if(topname=='cummnity'){
document.getElementById(bottmname+"_"+'2').style.display="block"	
	}	
}}}
function actiomform(value,numenr){
if(value=='出售' && numenr==0){
document.form1.action="../office_sale"
	}
if(value=='出租' && numenr==0){
document.form1.action="../off_rental"
	}
	if(value=='出售' && numenr==1){
document.form1.action="../shop_sale"
	}
if(value=='出租' && numenr==1){
document.form1.action="../shop_preimes"
	}
	}
function ype(value){
numer=document.getElementById("type").value
actiomform(value,numer)
	}
function seltype(value){
numer=document.getElementById("active").value
actiomform(value,numer)
	}
function formactive(){
if(document.getElementById("active").value==''){
alert('请选择商业类型')
return false;
	}
if(document.getElementById("type").value==''){
alert('请选择类型')
return false;
	}	
	}
function imageshow(url,image,title){
/*var ev = ev || window.event;
var mousePos = mousePosition(ev);
x=mousePos.x
y=mousePos.y*/

if ((navigator.userAgent.indexOf('MSIE') >= 0) && (navigator.userAgent.indexOf('Opera') < 0)){
x=event.clientX+document.documentElement.scrollLeft+20
y=event.clientY+document.documentElement.scrollTop+20
document.getElementById("imageshow").style.top=y
document.getElementById("imageshow").style.left=x
swidth=parseInt(x)+parseInt(340)+parseInt(60)
bwidth=document.body.offsetWidth || document.documentElement.offsetWidth
if(swidth>bwidth){
document.getElementById("imageshow").style.left=parseInt(x)-parseInt(340)-parseInt(60)+"px"
	}
}
 if (navigator.userAgent.indexOf('Firefox') >= 0){
document.getElementById("List1").onmousemove = netscapeMouseMove
	 }
document.getElementById("imageshow").style.display="block"
ch(url,image,title)
	}
function imageshide(){
document.getElementById("imageshow").style.display="none"	
	}
	/*
function mousePosition(ev){
         if(ev.pageX || ev.pageY){
                  return {x:ev.pageX, y:ev.pageY};
         }
         return {
                  x:ev.clientX + document.body.scrollLeft - document.body.clientLeft,
                  y:ev.clientY + document.body.scrollTop  - document.body.clientTop
         };
}
*/
function netscapeMouseMove(e) {

x=e.clientX+document.documentElement.scrollLeft+20
y=e.clientY+document.documentElement.scrollTop+20
document.getElementById("imageshow").style.top=y+2+"px"
document.getElementById("imageshow").style.left=x+2+"px"
swidth=parseInt(x)+parseInt(340)+parseInt(60)
bwidth=document.body.offsetWidth || document.documentElement.offsetWidth
if(swidth>bwidth){
document.getElementById("imageshow").style.top=y+2+"px"
document.getElementById("imageshow").style.left=parseInt(x)-parseInt(340)-parseInt(60)+"px"
	}
//document.getElementById("imageshow").style.display="block"
}
/*function onmousetimage(url){
image=new Image();
image.src=url;
height=470
width=650;
scrollwidth=parseInt((document.body.offsetWidth || document.documentElement.offsetWidth)/2)-parseInt(width/2)
//scrollheight=(parseInt(window.screen.height)/2)-parseInt(height/2)+parseInt(document.body.scrollTop || document.documentElement.scrollTop)
scrollheight=parseInt((window.screen.availHeight)/2)-parseInt(height/2)+parseInt(document.body.scrollTop || document.documentElement.scrollTop)
imagesheight=parseInt(scrollheight)+parseInt(5)
imagewidth=parseInt(scrollwidth)-parseInt(16)+parseInt(width)
document.getElementById("showimagedel").style.display="block";
document.getElementById("menimagedel").style.top=imagesheight+"px"
document.getElementById("menimagedel").style.left=imagewidth+"px"
document.getElementById("menimageshow").style.top=scrollheight+"px";
document.getElementById("menimageshow").style.left=scrollwidth+"px";

image="<img src=\""+image.src+"\" width=\""+width+"\" height=\""+height+"\">";
document.getElementById("menimageshow").innerHTML=image;
}
function imageclick(){
document.getElementById("showimagedel").style.display="none"	
	}*/

