// insert JavaScript source code here
function Equipe_FirstFocus_Focus( id, name)  {
	var targetControl = Equipe_FirstFocus_FindControl( id, name );
	if ( targetControl != null && targetControl.focus ) {
		targetControl.focus();
	}
}
function Equipe_FirstFocus_FindControl( id, name ) {
	if ( typeof(document.getElementById) != "undefined" ) {
		var focusControl = document.getElementById(id);
		if ( focusControl != null ) {
			return focusControl;
		}
	}
	for( var i = 0; i < document.forms.length; i++ ) {
		var theForm = document.forms[i];
		var focusControl = theForm[name];
		if ( focusControl != null ) {
			return focusControl;
		}
	}
	return null;
}

function change(id, newClass){
    id.className=newClass;
}

function popupWnd(URL,width,height)
{
    leftPos = 0
    topPos = 0
    if (screen) {
    leftPos = (screen.width / 2) - (width / 2)
    topPos = (screen.height / 2) - (height / 2)
    }
	day = new Date();
	id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'modal=1,toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=" + width + ",height=" + height + ",top=" + topPos + ",left=" + leftPos + "');");
}
