
var display_flag=new Array(10);
for (var i=0;i<display_flag.length;i++)display_flag[i]=0;//0表示none;1表示block
function change_sword(id,sword_color){
	var obj=document.getElementById("more_"+id);
	if(display_flag[id]==0){ obj.innerHTML="Close Up";obj.style.background="url("+urlroot+"images/sword_"+sword_color+"_up.gif) no-repeat scroll right center transparent";display_flag[id]=1;}
	  else { obj.innerHTML="More Info"; obj.style.background="url("+urlroot+"images/sword_"+sword_color+"_down.gif) no-repeat scroll right center transparent";display_flag[id]=0;}
	
}


var flag_check=0;
function yes_no(){ 
      
     if(flag_check==1){document.getElementById("qwe").style.background="url("+urlroot+"images/yes_no.jpg) no-repeat left center";flag_check=0;}
        else {document.getElementById("qwe").style.background="url("+urlroot+"images/yes.jpg) no-repeat left center";flag_check=1;}
}
function $new(id){
 return document.getElementById(id);	
}

function hidden(id){
 $new(id).style.display="none";	
}

function download_pdf(){
	
location.href='http://innovo.kalbeta.cn/test.rar';
}


function onblur_enquiries(text,id,obj){
     if(obj.value==''){
	       obj.value=text; document.getElementById(id).value='';
		 }
            else {document.getElementById(id).value=obj.value;obj.value=''}
}
function onfocus_enquiries(text,id,obj){
	obj.value=document.getElementById(id).value;document.getElementById(id).value='';if(obj.value==text)obj.value='';
}




<!--
var winWidth = 0;
var winHeight = 0;
function findDimensions() //函数：获取尺寸
{
//获取窗口宽度
if (window.innerWidth)
winWidth = window.innerWidth;
else if ((document.body) && (document.body.clientWidth))
winWidth = document.body.clientWidth;
//获取窗口高度
if (window.innerHeight)
winHeight = window.innerHeight;
else if ((document.body) && (document.body.clientHeight))
winHeight = document.body.clientHeight;
//通过深入Document内部对body进行检测，获取窗口大小
if (document.documentElement  && document.documentElement.clientHeight && document.documentElement.clientWidth)
{
winHeight = document.documentElement.clientHeight;
winWidth = document.documentElement.clientWidth;
}
//结果输出至两个文本框

}
findDimensions();
//调用函数，获取数值
window.onresize=findDimensions; 
//-->

function pop_up(w,h,id){
	WLeft_f2   =   Math.ceil((winWidth   -   w)   /   2  );
    WTop_f2   =   Math.ceil((winHeight   -   h)   /   2   ); 
	if(WTop_f2<0) WTop_f2=10;
	obj_f2 = document.getElementById(id);
    obj_f2.style.left = WLeft_f2 +"px";
    obj_f2.style.top =WTop_f2 +"px";	
}




