You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
1.7 KiB

var tt='start';
var ii='start';
function turnit(ss,bb) {
if (ss.style.display=="none") {
if(tt!='start') tt.style.display="none";
if(ii!='start') ii.src="";
ss.style.display="";
tt=ss;
ii=bb;
bb.src="";
} else {
ss.style.display="none";
bb.src="";
}
}
function YinCangDiv(obj){
document.all(obj).style.display = "none";
}
function setroomsettingvalue(){
var objlist = document.all("vallist");
var i=0;
var str = "";
var pobj = document.getElementById("baseset");
if(objlist)
{
if(objlist.length)
{
for(i=0; i <= objlist.length-1; i++)
{
var v1 = objlist[i].value;
if (objlist[i].checked)
{
if ( "" == str)
{
str += objlist[i].value;
}
else
{
str += "<22><>" + objlist[i].value;
}
}
}
}
else
{
var v1 = objlist.value;
if (objlist.checked)
{
if ( "" == str)
{
str += objlist.value;
}
else
{
str += "<22><>" + objlist.value;
}
}
}
}
pobj.value = str;
document.getElementById("resetdiv").style.display = "none";
}
function ShowNopassDiv(obj,objdiv)
{
var ttop = obj.offsetTop;
var tleft = obj.offsetLeft;
var theight =obj.offsetHeight;
var elem = obj;
while (obj = obj.offsetParent)
{
ttop+=obj.offsetTop;
tleft+=obj.offsetLeft;
}
var parm = document.getElementById(objdiv);
parm.style.visibility = "visible";
parm.style.display = "";
parm.style.top = ttop+theight;
parm.style.left = tleft;
return false;
}