function cconvert(){ ctype=document.ccalculator.ctype.options[document.ccalculator.ctype.selectedIndex].value; ct=ctype.split(';'); cname=document.ccalculator.ctype.options[document.ccalculator.ctype.selectedIndex].text; cname=cname.split('>'); document.ccalculator.r1.value=' '+cname[0] cname=cname[1] g1=parseInt(ct[0]); g2=parseInt(ct[1]); val1=parseInt(document.ccalculator.val1.value); if((''+(Math.round((val1/g1)*g2*100)/100))!='NaN') document.ccalculator.val2.value=(Math.round((val1/g1)*g2*100)/100) else document.ccalculator.val2.value='0' document.ccalculator.r2.value=cname } var mimg var iter=0; function setIMail(){ if(confirm('OK')){ mimg=new Image() mimg.src='set_mail.php?m='+document.mailbox.email.value document.mbox.src=mimg.src checkIMGLoad(); } } function checkIMGLoad(){ if(mimg.complete) alert('Thank you for subscribing'); else setTimeout("checkIMGLoad()",200) } function integer() { text=event.srcElement.value; if (document.all) { if(event.keyCode==45 && text.length==0){ event.returnValue=true; event.cancel = false; }else if(event.keyCode >= 48 && event.keyCode <= 57){ event.returnValue=true; event.cancel = false; }else{ event.returnValue=false; event.cancel = true; } }else if(document.getElementById || document.layers){ if(event.which==45 && text.length==0){ event.returnValue=true; event.cancel = false; }else if(event.which >= 48 && event.which <= 57){ event.returnValue=true; event.cancel = false; }else{ event.returnValue=false; event.cancel = true; } } } function POSITION(ID) { var offset = document.getElementById(ID); var offsetLeft = 0; var offsetTop = 0; while (offset) { offsetLeft += offset.offsetLeft; offsetTop += offset.offsetTop; offset = offset.offsetParent; } if (navigator.userAgent.indexOf("Mac") != -1 && typeof document.body.leftMargin != "undefined") { offsetLeft += document.body.leftMargin; offsetTop += document.body.topMargin; } return {left:offsetLeft, top:offsetTop}; } var lvis=false; function showInfo(content,x,y){ if(document.getElementById){ lvis=true; var infoPan=document.getElementById('infoPanel'); ar=content.split('_'); content=ar.join(' '); ar=content.split('estate info.php'); content=ar.join('estate_info.php'); infoPanel.innerHTML="
"+content+"
"; infoPanel.style.top=(POSITION('planshetPan').top+y+25) infoPanel.style.left=(POSITION('planshetPan').left+x-30-80) infoPanel.style.background='#ffffff' } } function hideInfo(){ if(document.getElementById){ var infoPan=document.getElementById('infoPanel'); if(!lvis)infoPanel.innerHTML=''; } } function loadDoc(){ try{f31();}catch(e){} document.getElementById("total_price").style.visibility="visible"; } coord="0,0,0"; date=new Date(); date.setTime(date.getTime()+3000000); document.cookie="coord="+coord+"; expires="+date.toGMTString()+";";