
//to find the position where to display the mini date calendar
	function Browser_chk() {

	  var ua, s, i;

	  this.isIE    = false;  // Internet Explorer
	  this.version = null;

	  ua = navigator.userAgent;

	  s = "MSIE";
	  if ((i = ua.indexOf(s))) 
	  {
		ua = ua.replace('MSIE 6', 'MSIE6');
		ua = ua.replace('MSIE 7', 'MSIE7');

		this.isIE = true;
		this.version = parseFloat(ua.substr(i + s.length));
		return;
	  }

	}

function findPosX(name)
{
var obj = document.getElementById(name);
	var curleft = 0;
try{
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft;
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
		curleft += obj.x;
   }
catch(e){//alert(e.description );
   }
	return curleft;
}

function findPosY(name)
{
var obj = document.getElementById(name);
	   var curtop = 0;
try{
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop;
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		curtop += obj.y;
   }
catch(e){//alert(e.description );
   }
	return curtop;
}
