self.onError = null;
currentX = currentY = 0;
whichIt = null;
lastScrollX = 0; lastScrollY = 0;
NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;
function heartBeat(objectid) {
if(IE) { diffY = document.body.scrollTop; diffX = document.body.scrollLeft; }
if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
if(diffY != lastScrollY) {
percent = .1 * (diffY - lastScrollY);
if(percent > 0) percent = Math.ceil(percent);
else percent = Math.floor(percent);
if(IE) {
objectid = objectid.split(";"); 
for (i = 0; i < objectid.length; i++) eval("document.all."+objectid[i]).style.pixelTop += percent;
}
if(NS) {
objectid = objectid.split(";"); 
for (i = 0; i < objectid.length; i++) eval("document."+objectid[i]).top += percent; 
} 
lastScrollY = lastScrollY + percent;
}
if(diffX != lastScrollX) {
percent = .1 * (diffX - lastScrollX);
if(percent > 0) percent = Math.ceil(percent);
else percent = Math.floor(percent);
if(IE) {
objectid = objectid.split(";"); 
for (i = 0; i < objectid.length; i++) eval("document.all."+objectid[i]).style.pixelLeft += percent;
} 
if(NS) {
objectid = objectid.split(";"); 
for (i = 0; i < objectid.length; i++) eval("document."+objectid[i]).left += percent;    
} 
lastScrollX = lastScrollX + percent;
}  
}
if(NS || IE) action = window.setInterval("heartBeat('floater;floater1')", 2);






function BeginTime(id) 
			{ 
				var timestring = showModalDialog("imagesa/selecttime.htm", "", "dialogLeft:"+(event.screenX-13)+";dialogTop:"+(event.screenY-15)+";dialogWidth:165px; dialogHeight:205px; edge:raised;help:off;status:off;scroll:off");
				if(timestring!="")
				{
					document.getElementById(id).value = timestring;  
				}   
			}





var sId = "";
		var hid,swidth,sheight;
		var sId = "";
		function getId()
		{
			try
			{
			sId = location.search;
			sId = sId.substring(1,sId.length);
			if( sId != "" )
			{
				document.all.id.value = sId;
				document.all.CooperateId.value = sId;
			}
			else
			{
				document.all.id.value = "94806";
				document.all.CooperateId.value = "94806";
			}
			}
			catch(e){}
		}

			function setFlyDate()
			{
				date = new Date(); 
				var month = date.getMonth();
				var tday = date.getDate();				
				month ++;
				document.all.FlyDate.value = date.getYear() + "-" +  month + "-" + tday;
				
			} 
