//alert(navigator.appName);
var Browser;
if(window.opera) {
	var Browser="op";
	}
else if(navigator.appName == "Microsoft Internet Explorer") {
	var Browser="ie";
	}
else if(navigator.appName == "Netscape") {
	var Browser="ns";
	}

//alert(Browser);

function OpenCalendar(Element) {
	objDate = Element;
	Calendar = window.open('calendar.asp?what='+Element.name, 'CalendarWindow', 'width=266,height=328,status=no');
	Calendar.focus();
}

function ApplyDateValues(DateValues) {
	DateArray = DateValues.split("|");
	window.document.searchform.DateBegin.value=DateArray[0];
	window.document.searchform.DateEnd.value=DateArray[1];
}



if (!document.layers&&!document.all&&!document.getElementById)
event="test"

function showtip(current,e,text) {
	if (document.all||document.getElementById) {
		thetitle=text.split('<br>')
			if (thetitle.length>1){
			thetitles=''
			for (i=0;i<thetitle.length;i++)
			thetitles+=thetitle[i]
			current.title=thetitles
		}
	else
		current.title=text
		}
	else if (document.layers) {
	//alert("dfdsf");
		document.tooltip.document.write('<layer bgColor="#EDF0EC" style="border:1px solid black; font-size:8pt; background-color:#EDF0EC;"><table bgcolor="#EDF0EC"><tr><td>'+text+'</td></tr></table></layer>')
		document.tooltip.document.close()
		document.tooltip.left=e.pageX+5
		document.tooltip.top=e.pageY+5
		document.tooltip.visibility="show"
		}
}
function hidetip() {
	if (document.layers)
	document.tooltip.visibility="hidden"
}

