<!--
//write the current date: 
//used in: logon.aspx, uc_topbanner.ascx
function WriteDate()
{
var d = new Date() ;
var x = new Array ("januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december");
var datum = "";
datum = d.getDate()+ " " + (x[d.getMonth()]) + " " + d.getFullYear();
document.write(datum);
}
//this function is sometimes used to have a navigation functionality for whatever part that is clickable
//used in: _comp/uc_compdivmenu
function NavigateTo(url)
{
	location.href=url;
}
//function used to show a popup, with a given width and height
function openSizedPopup(url, w, h){
	var myPopup;
	if(myPopup == null || myPopup.closed){
		myPopup = window.open(url,
			'popupWindow', 'toolbar=no,location=no,directories=no, status=no, menubar=no,'
			+ 'scrollbars=no, resizable=no, copyhistory=yes,width=' + w + ', height=' + h + ', left = 100, top = 120');
		if(!myPopup.opener)	myPopup.opener = self;
	}
	myPopup.focus();
}
//function used to show a popup, with a given width and height, with scrollbars
function openSizeablePopup(url, w, h){
	var myPopup;
	if(myPopup == null || myPopup.closed){
		myPopup = window.open(url,
			'popupWindow', 'toolbar=no,location=no,directories=no, status=no, menubar=no,'
			+ 'scrollbars=yes, resizable=yes, copyhistory=yes,width=' + w + ', height=' + h + ', left = 100, top = 120');
		if(!myPopup.opener)	myPopup.opener = self;
	}
	myPopup.focus();
}
//function used to show a popup, with a given width and height
function UserInfo(user){
	var myPopup;
	if(myPopup == null || myPopup.closed){
		myPopup = window.open('UserInfo.aspx?id=' + user,
			'User', 'toolbar=no,location=no,directories=no, status=no, menubar=no,'
			+ 'scrollbars=yes, resizable=yes, copyhistory=yes,width=400, height=550, left = 25, top = 25');
		if(!myPopup.opener)	myPopup.opener = self;
	}
	myPopup.focus();
}
//function used to show a popup, with a given width and height
function ActiveUsers(type){
	var myPopup;
	if(myPopup == null || myPopup.closed){
		myPopup = window.open('ActiveUsers.aspx?type=' + type,
			'User', 'toolbar=no,location=no,directories=no, status=no, menubar=no,'
			+ 'scrollbars=no, resizable=yes, copyhistory=yes,width=370, height=600, left = 25, top = 25');
		if(!myPopup.opener)	myPopup.opener = self;
	}
	myPopup.focus();
}
function UsersPerTeam(){
	var myPopup;
	if(myPopup == null || myPopup.closed){
		myPopup = window.open('UsersPerTeam.aspx',
			'User', 'toolbar=no,location=no,directories=no, status=no, menubar=no,'
			+ 'scrollbars=no, resizable=yes, copyhistory=yes,width=370, height=600, left = 25, top = 25');
		if(!myPopup.opener)	myPopup.opener = self;
	}
	myPopup.focus();
}
function openWin( windowURL, windowName, windowFeatures ) { 
	return window.open( windowURL, windowName, windowFeatures ) ; 
} 
function GoTo(mySelect){
		var x = mySelect.selectedIndex;
		location.href = "#cat" + mySelect.options[x].value;
}
function ReloadOpener(url)
{
	opener.document.location.href=url;
	window.close();
}
function MyHelp(_help){
		var x = _help.selectedIndex;
		parent.frames[1].location.href = "help.aspx#n" + _help.options[x].value;
}
function CheckAll(form)
{
	if (document.all)
	{
		/* Loop trough the form fields */
		for ( fieldCounter = 0; fieldCounter < form.length; fieldCounter++)
		{
			currentField = form.elements[fieldCounter];
			fieldName = currentField.name.toLowerCase(toString())
			fieldType = currentField.type.toLowerCase(toString())

			if (fieldType == "checkbox")
				currentField.checked=true;
		}
	}
}
function TCP()
{
	openSizedPopup('TCP.htm', 250, 85)
}
-->