<!--
		function var_dump(obj) {		   if(typeof obj == "object") {		      return "Type: "+typeof(obj)+((obj.constructor) ? "\nConstructor: "+obj.constructor : "")+"\nValue: " + obj;		   } else {		      return "Type: "+typeof(obj)+"\nValue: "+obj;		   }		}			function hideDiv(div) {			div = returnObjById(div);			div.style.display = "none";		}		
		function returnObjById( id ) {
		    if (document.getElementById)
		        var returnVar = document.getElementById(id);
		    else if (document.all)
		        var returnVar = document.all[id];
		    else if (document.layers)
		        var returnVar = document.layers[id];
		    return returnVar;
		}
 		function prectiSoubor(url) {			 			var config = new Array();			config["method"] = 'GET';			config["element"] = "races";			config["loader"] = "loader";			var xhr1 = new Xhr(url, config);			xhr1.processUrl();			  		} 				 			function renderSubmenu(type, id) {					var div = returnObjById("submenu_" + id);			div.style.position = "absolute";			div.style.display = "";			var url = '/index/submenu/type/' + type  + '/id/' + id;			 			var config = new Array();			config["method"] = 'GET';			config["element"] = "submenu_" + id;			var xhr2 = new Xhr(url, config);			xhr2.processUrl();			  		}			function checkStartNumbers() {		  			var div = returnObjById("startNo");			var url = '/useradmin/team/startnumbers/no/' + div.value;			var config = new Array();			config["method"] = 'GET';			config["loader"] = 'loader';			config["element"] = 'feedbackbox';				var xhr3 = new Xhr(url, config);			xhr3.processUrl();		}				function checkCompetitorStartNumbers() {			  			var div = returnObjById("start_number");			var url = '/useradmin/profile/startnumbers/no/' + div.value;			var config = new Array();			config["method"] = 'GET';			config["loader"] = 'loader';			config["element"] = 'feedbackbox';				var xhr3 = new Xhr(url, config);			xhr3.processUrl();		}				function getProfiles(team) {						var div = returnObjById("search");			if (div.value.length > 2) {				var url = '/useradmin/profile/ajaxexist/team/' + team + '/search/' + div.value; 				var config = new Array();				config["method"] = 'GET';				config["element"] = "feedbackbox";				config["loader"] = "loader";				var xhr4 = new Xhr(url, config);				xhr4.processUrl();			}  		}				function getProfilesAdmin(team) {						var div = returnObjById("search");			if (div.value.length > 2) {				var url = '/admin/competitor/ajaxexist/team/' + team + '/search/' + div.value; 				var config = new Array();				config["method"] = 'GET';				config["element"] = "feedbackbox";				config["loader"] = "loader";				var xhr9 = new Xhr(url, config);				xhr9.processUrl();			}  		}				function subscribeCompetitorToTeam(team, competitor) {						var url = '/useradmin/team/fastaddmember/ajax/1/team/' + team + '/competitor/' + competitor;			var config = new Array();			config["method"] = 'GET';			config["loader"] = 'loader';			config["element"] = 'feedbackbox';			//var params = "competitor=" + encodeURI( competitor );			//config["parameters"] = params;			var xhr5 = new Xhr(url, config);			xhr5.processUrl();					}				function subscribeCompetitorToTeamAdmin(team, competitor) {						var url = '/admin/team/fastaddmember/ajax/1/team/' + team;			var config = new Array();			config["method"] = 'POST';			config["loader"] = 'loader';			config["element"] = 'feedbackbox';			var params = "competitor=" + encodeURI( competitor );			config["parameters"] = params;			var xhr10 = new Xhr(url, config);			xhr10.processUrl();					}				function getCompetitors() {						var div = returnObjById("search");			if (div.value.length > 2) {				var url = '/admin/competitor/competitorsearch/search/' + div.value; 				var config = new Array();				config["method"] = 'GET';				config["element"] = "feedbackbox";				config["loader"] = "loader";				var xhr6 = new Xhr(url, config);				xhr6.processUrl();			}  		}				function getTeams() {						var div = returnObjById("search");			if (div.value.length > 2) {				var url = '/admin/team/teamsearch/search/' + div.value; 				var config = new Array();				config["method"] = 'GET';				config["element"] = "feedbackbox";				config["loader"] = "loader";				var xhr7 = new Xhr(url, config);				xhr7.processUrl();			}  		}				function checkStartNumbersAdmin() {			  			var div = returnObjById("start_number");			var url = '/admin/team/startnumbers/no/' + div.value;			var config = new Array();			config["method"] = 'GET';			config["loader"] = 'loader';			config["element"] = 'feedbackbox';				var xhr8 = new Xhr(url, config);			xhr8.processUrl();		}				function getCompetitorsPayments() {						var div = returnObjById("search");			if (div.value.length > 2) {				var url = '/admin/payment/ajaxexist/search/' + div.value; 				var config = new Array();				config["method"] = 'GET';				config["element"] = "feedbackbox";				config["loader"] = "loader";				var xhr11 = new Xhr(url, config);				xhr11.processUrl();			}  		}				function editPayment(url, id) {			var div = returnObjById("submenu_" + id);			div.style.position = "absolute";			div.style.display = "";						var config = new Array();			config["method"] = 'GET';			config["element"] = "submenu_" + id;			config["loader"] = "loader";			var xhr12 = new Xhr(url, config);			xhr12.processUrl();			  		} 				function editApplicant(competitor, team, action, selected) {						if ( team != 'null' ) {				var url = '/admin/payment/editapplicant/team/' + team + '/competitor/' + competitor + '/act/' + action + '/' + selected;			} else {				var url = '/admin/payment/editapplicant/competitor/' + competitor + '/act/' + action + '/' + selected;			}						var div = returnObjById("submenu_" + competitor + "_" + action);			div.style.position = "absolute";			div.style.display = "";						var config = new Array();			config["method"] = 'GET';			config["element"] = "submenu_" + competitor + "_" + action;			config["loader"] = "loader_" + competitor + "_" + action;			var xhr13 = new Xhr(url, config);			xhr13.processUrl();			  		} 				/*		function getPossibleApplicants(forTeams, type, action) {						var div = returnObjById("search");			if (div.value.length > 2) {				if (forTeams == 0)					var url = '/admin/competitor/competitorsearch/act/' + action + '/type/' + type + '/search/' + div.value;				else					var url = '/admin/team/teamsearch/act/' + action + '/type/' + type + '/search/' + div.value;				var config = new Array();				config["method"] = 'GET';				config["element"] = "feedbackbox";				config["loader"] = "loader";				var xhr13 = new Xhr(url, config);				xhr13.processUrl();			}  		}		*/				function renderAdminSubmenu(competitor) {			var div = returnObjById("submenu");			div.innerHtml = "";			var id = returnObjById("act").value;			var div = returnObjById("submenu");			div.style.position = "absolute";			div.style.display = "";						var url = '/admin/index/submenu/id/' + id + '/competitor/' + competitor;			 			var config = new Array();			config["method"] = 'GET';			config["element"] = "submenu";			config["loader"] = "loader";			var xhr14 = new Xhr(url, config);			xhr14.processUrl();			  		}				function detailBoxes (box) {			var div = returnObjById("feedback_" + box);			div.style.position = "absolute";			div.style.display = "";						var url = '/admin/circuit/updateboxes/id/' + box;			 			var config = new Array();			config["method"] = 'GET';			config["element"] = "feedback_" + box;			config["loader"] = "loader_" + box;			var xhr15 = new Xhr(url, config);			xhr15.processUrl();			  		}
// -->
