/**********************************************************************************************This Script Library is used in 15.HomePageSetup | frmHomePageSetupAuthor: Date Created: March 10/2006***********************************************************************************************/	/* Used to create timepicker*//*****************************************************************************************/	//var st=1, et=23, w=80, h=352, dh=-5, pw=40, ph=12, x, y, px, field,mevent;var st=0, et=23, w=80, h=375, dh=-5, pw=60, ph=13, x, y, px, field,mevent;function pickTime(f) {	y=event.clientY - h/2;	x=event.clientX - w/2;	if (x > document.body.clientWidth - 10 - w) x = document.body.clientWidth - 30 - w;		if (x < 10 + w/2) x = 10;if (y > document.body.clientHeight - 10 - h) y = document.body.clientHeight - 10 - h;	if (y < 10 + h/2) y = 10;	timer.style.left=x;	timer.style.top=y;	timer.style.visibility='visible';	px=0;	field=f;	}function pickTimeMozilla(f,event) {	mevent=event	y=event.clientY - h/2;	x=event.clientX - w/2;	if (x > document.body.clientWidth - 10 - w) x = document.body.clientWidth - 30 - w;	if (x < 10 + w/2) x = 10;	if (y > document.body.clientHeight - 10 - h) y = document.body.clientHeight - 10 - h;	if (y < 10 + h/2) y = 10;	timer.style.left=x;	timer.style.top=y;	timer.style.visibility='visible';	px=0;	field=f;	}function getTime(mevent,ret) {	if(document.all)	{		y=event.offsetY;	}	else	{   		 var evtOffsets = getOffsets(mevent);		y=evtOffsets.offsetY;	}	t=st+(et-st)*(y+dh)/h;	dt=(t-parseInt(t))*60; 	dt=dt-dt%15; if (dt==0) dt='00'	t=parseInt(t); if (t<10) t='0'+t;	if (ret) {document.forms[0].elements[field].value=t+':'+dt; closePicker(); return;}	tpop.innerHTML=t+':'+dt;	if (!px) px=parseInt(timer.style.left) + w/2 + pw - 15;	tpop.style.left=px;	if(document.all)		tpop.style.top=event.clientY-ph/2;	else		tpop.style.top=mevent.clientY-ph/2;	tpop.style.visibility='visible';}function closePicker(m) {	tpop.style.visibility='hidden';	if (!m)	{		 timer.style.visibility='hidden';	}}function getOffsets (evt) {  var target = evt.target;  if (typeof target.offsetLeft == 'undefined') {    target = target.parentNode;  }  var pageCoords = getPageCoords(target);  var eventCoords = {     x: window.pageXOffset + evt.clientX,    y: window.pageYOffset + evt.clientY  };  var offsets = {    offsetX: eventCoords.x - pageCoords.x,    offsetY: eventCoords.y - pageCoords.y  }  return offsets;}function getPageCoords (element) {  var coords = {x : 0, y : 0};  while (element) {    coords.x += element.offsetLeft;    coords.y += element.offsetTop;    element = element.offsetParent;  }  return coords;}