
/* 2007 Copyright by */
/* Michael Kreutz, www.lumocad.de */
/* Sebastian Beutel, www.s-beutel.de */
 function ak(){var bH=document.getElementById("pointsTableDiv");bH.style.left=document.getElementById("map").offsetLeft+"px";bH.style.top=document.getElementById("map").offsetTop+"px";bH.style.display=(bH.style.display=="block")?"none":"block";};function L(aT,bt,bC){var aZ=document.createElement("img");aZ.src="gfx/icons/up.gif";aZ.border="0";aZ.title="Up";aZ.id=aT+bt;if(bd){aZ.style.setAttribute('cssText','position:relative;top:-8px;',0);}else{aZ.setAttribute("style","position:relative;top:-5px");}aZ["onclick"]=function(){V(5+(this.id-bt)*8+bC);};aZ["onmousedown"]=function(){ac(5+(this.id-bt)*8+bC);};aZ["onmouseup"]=function(){O();};aZ["onmouseout"]=function(){O();};return aZ;};function C(aT,bt,bC){var aY=document.createElement("img");aY.src="gfx/icons/down.gif";aY.border="0";aY.title="Down";aY.id=aT+bt;if(bd){aY.style.setAttribute('cssText','position:relative;top:4px;left:-16px;',0);}else{aY.setAttribute("style","position:relative;top:7px;left:-16px");}aY["onclick"]=function(){Y(5+(this.id-bt)*8+bC);};aY["onmousedown"]=function(){ab(5+(this.id-bt)*8+bC);};aY["onmouseup"]=function(){M();};aY["onmouseout"]=function(){M();};return aY;};function K(fk,eR,fv,eM,eL,dB){var bx=document.createElement("input");bx.type='text';bx.name=fk;bx.fS=eR;bx.size=fv;bx.value=eM;bx.title=eL;if(dB){bx["readOnly"]='readonly';}return bx;};function as(aT){var aH=document.getElementById("pointsTable");aP=(2*aT)+2;fn=aT+1;var dU=K('coords_'+aT,30,30,'Point '+fn+' -- '+aB[aT][0]+", "+aB[aT][1]+", "+aB[aT][2],'coords',1);if(bd){dU.style.setAttribute('cssText','border-style:none;font-weight:bold',0);}else{dU.setAttribute("style","border-style:none;font-weight:bold");}var hu=document.createElement('br');var hc=document.createElement('br');var eO=document.createTextNode('\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Yaw: ');var et=K('yaw_'+aT,2,2,0,'ca');var ec=L(aT,300,2);var dT=C(aT,400,2);var eG=document.createTextNode(" bj: ");var es=K('elev_'+aT,2,2,10,'elevation');var ea=L(aT,500,3);var ee=C(aT,600,3);var eJ=document.createTextNode(" Tilt: ");var eq=K('tilt_'+aT,2,2,document.bN.base_tilt.value,'tilt');var dX=L(aT,700,4);var dV=C(aT,800,4);var eY=document.createElement('br');var fa=document.createElement('br');var eI=document.createTextNode("series: ");var ba=document.createElement("select");ba.name='select';ba.size='1';ba.title='series';var ci=document.createElement("option");ci.text='none';ci.value=0;ci.title='no series';var cj=document.createElement("option");cj.text='height';cj.value=1;cj.title='height series';var cf=document.createElement("option");cf.text='tilt';cf.value=2;cf.title='tilt series';var cb=document.createElement("option");cb.text='ca';cb.value=3;cb.title='ca series';var ce=document.createElement("option");ce.text='time';ce.value=4;ce.title='time series';if(bd){ba.add(ci);ba.add(cj);ba.add(cf);ba.add(cb);ba.add(ce);}else{ba.add(ci,null);ba.add(cj,null);ba.add(cf,null);ba.add(cb,null);ba.add(ce,null);}var eH=document.createTextNode("\u00a0\u00a0\u00a0 spread: ");var eu=K('spread_'+aT,2,2,10,'spread');var dW=L(aT,100,6);var dY=C(aT,200,6);var eX=document.createTextNode(" number of pictures: ");var ev=K('numpict_'+aT,2,2,1,'number of pictures');var eW=document.createTextNode("\u00a0\u00a0\u00a0 Duplicate Point: ");var bz=document.createElement("input");bz.type='button';bz.name='duplicate';bz.value='Duplicate';bz["onclick"]=function(){au();};bz.title='Duplicate aN';aH.insertRow(aP);aH.rows[aP]["onclick"]=function(){k(this.rowIndex/2-1);P(this.rowIndex/2-1);};aH.rows[aP].insertCell(0);aH.rows[aP].cells[0].appendChild(dU);aH.rows[aP].cells[0].appendChild(eO);aH.rows[aP].cells[0].appendChild(et);aH.rows[aP].cells[0].appendChild(ec);aH.rows[aP].cells[0].appendChild(dT);aH.rows[aP].cells[0].appendChild(eG);aH.rows[aP].cells[0].appendChild(es);aH.rows[aP].cells[0].appendChild(ea);aH.rows[aP].cells[0].appendChild(ee);aH.rows[aP].cells[0].appendChild(eJ);aH.rows[aP].cells[0].appendChild(eq);aH.rows[aP].cells[0].appendChild(dX);aH.rows[aP].cells[0].appendChild(dV);aH.rows[aP].cells[0].appendChild(eY);aH.rows[aP].cells[0].appendChild(fa);aH.rows[aP].cells[0].appendChild(eI);aH.rows[aP].cells[0].appendChild(ba);aH.rows[aP].cells[0].appendChild(eH);aH.rows[aP].cells[0].appendChild(eu);aH.rows[aP].cells[0].appendChild(dW);aH.rows[aP].cells[0].appendChild(dY);aH.rows[aP].cells[0].appendChild(eX);aH.rows[aP].cells[0].appendChild(ev);aH.rows[aP].cells[0].appendChild(eW);aH.rows[aP].cells[0].appendChild(bz);var fs=document.createElement('hr');aH.insertRow(aP+1);aH.rows[aP+1].insertCell(0);aH.rows[aP+1].cells[0].appendChild(fs);};function P(aT){var aH=document.getElementById("pointsTable");for(i=0;i<aH.rows.length;i++){aH.rows[i].bgColor="#ffffff";}aH.rows[(2*aT)+2].bgColor="#cdcdcd";document.bN.elements[5+(aT*8)+7].focus();document.bN.elements[5+(aT*8)+1].focus();};function ay(aT){var aH=document.getElementById("pointsTable");aH.deleteRow(2*aT+2);aH.deleteRow(2*aT+2);};function V(bp){document.bN.elements[bp].value++;};function Y(bp){document.bN.elements[bp].value--;};function ac(bp){var bD='aq("'+bp+'")';ge=window.setTimeout(bD,300);};function aq(bp){var bD='V("'+bp+'")';gf=window.setInterval(bD,50);};function O(){try{window.clearTimeout(ge);window.clearInterval(gf);}catch(e){return false;}};function ab(bp){var bD='ao("'+bp+'")';gk=window.setTimeout(bD,300);};function ao(bp){var bD='Y("'+bp+'")';gi=window.setInterval(bD,50);};function M(){try{window.clearTimeout(gk);window.clearInterval(gi);}catch(e){return false;}};function au(){alert('The duplicated aN will be initialized with \r\ninit data of this aN.\r\n\r\n I.e. after performing a height or angle series,\r\nwe start from the origin of this aN again!');}
