function doChangeGR(){
	goto= $F("cpMenu");
	//gotopage= $F("page");
	//alert(goto);	
	window.location="resultsliveGR.php?c="+goto;	
	
}

function doChange(){
	goto= $F("cpMenu");
	//gotopage= $F("page");
	//alert(goto);	
	window.location="resultslive.php?c="+goto;	
	
}
function doChangeYear(year){
	
	switch(year){
		case "gr":
		goto= $F("pyears");	
	window.location="resultsGRparticipants.php?y="+goto;	
		break;
		case "en":
		goto= $F("pyears");	
	window.location="resultsparticipants.php?y="+goto;	
		break;
		default:
		goto= $F("cpMenu");
	//gotopage= $F("page");
	//alert(goto);	
	window.location="resultsGRparticipants.php?y="+goto;	
		break;
	}
	
	
}
function doChangeYearFinish(year){
	
	switch(year){
		case "gr":
		goto= $F("pyears");	
	window.location="resultsGRfinishers.php?y="+goto;	
		break;
		case "en":
		goto= $F("pyears");	
	window.location="resultsfinishers.php?y="+goto;	
		break;
		
		default:
		goto= $F("cpMenu");
	//gotopage= $F("page");
	//alert(goto);	
	window.location="resultsGRparticipants.php?y="+goto;	
		break;
	}
	
	
}




function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function MM_changeProp(objId,x,theProp,theValue) { //v9.0
  var obj = null; with (document){ if (getElementById)
  obj = getElementById(objId); }
  if (obj){
    if (theValue == true || theValue == false)
      eval("obj.style."+theProp+"="+theValue);
    else eval("obj.style."+theProp+"='"+theValue+"'");
  }
}
function loadingps(id){
	
Element.update(id,"<img src=\"images/load.gif\" align=\"middle\"/><p align=\"center\"><b>Processing...</b></p>");	

}
function moredata(data,i,lang){
	
	if(data!="" && i!=""){
		
		if ($F("opened") != "" && $F("opened") != "0") {
			var temp = "data_"+$F("opened");
			//alert(temp);
			Element.update(temp, "");
		}
		
		if ($F("opened") != i) {
		
		
			var url = '_z_racers.php';
			var pars = "";
			var targetdiv = data;
			var targetclick = 'click_' + i;
			
			pars += '&zmode=get&i=' + i + '&lang=' + lang;
			var myAjax = new Ajax.Request(url, {
				method: 'post',
				parameters: pars,
				onStateChange: loadingps(data),
				onComplete: function ajax_response_check_keys(originalRequest){
					Element.update(data, originalRequest.responseText);
				}
			});
		}else{
			temp = "data_"+i;
			Element.update(temp, "");
		}
		
	}
	
}


