function Point(iX, iY){
this.x = iX;
this.y = iY;
}

function fGetXY(aTag){
var oTmp = aTag;
var pt = new Point(0,0);
do {
pt.x += oTmp.offsetLeft;
pt.y += oTmp.offsetTop;
oTmp = oTmp.offsetParent;
} while(oTmp.tagName!="BODY");
return pt;
}

function isDisplay(index)
{
  var tdiv = eval("document.all.div_"+index);
  if(tdiv.className == 'on')
    tdiv.className = 'off';
  else
    tdiv.className = 'on';
}

function showSensors(index)
{
  var tdiv = eval("document.all.div_"+index);
  var tspan = eval("document.all.span_"+index);
  if(tdiv.className == 'on')
  {
	  tspan.innerText = '+';
	  tdiv.className = 'off';
	  
  }
  else
 {
	 tspan.innerText = '-';
	 tdiv.className = 'on';
	  
 }
}

function hideDiv(index)
{
	var arr = new Array();
	arr[0] = document.all.div_1;
	arr[1] = document.all.div_2;
	arr[2] = document.all.div_3;
	arr[3] = document.all.div_4;		
	var temp = parseInt(index) -1;
	for(var i=0;i<4;i++)
	{
		if(temp != i)
			a[i].className = "off";
	} 

}
