
function showGoal(){
	window.open("","goal","top=1,left=1,width=490,height=300,scrollbars=yes,status=no");
}

function showStanding(){
	window.open("","standing","top=1,left=1,width=490,height=500,scrollbars=yes,status=no");
}

function showH2H(){
	window.open("","h2h","top=1,left=1,width=560,height=550,scrollbars=yes,status=no");
}

function showHistory(){
	d=document.frmHistory.cbHistory.options[document.frmHistory.cbHistory.selectedIndex].value;
	if(d==0){
		window.location.href="index.php";
	}else{
		window.location.href="index.php?d="+d;
	}
}


function shDiv(f){
	cpIn='';
	//
  t=document.frm.total.value
  //
  for(i=0;i<t;i++){
		el=document.getElementById('cA'+i);
    //
    cp=document.getElementById('dvCp'+el.value);
    gm=document.getElementById('dvGm'+el.value);
    ok=document.getElementById('dvOk');
		//
    if(el.checked){
			gm.className='visible';
      cpIn+='1';
    }else{
			gm.className='hidden';
      cpIn+='0';
    }
		el.checked=0;
		//
    cp.className=(f?'hidden':'visible');
    ok.className=(f?'hidden':'visible');
  }
}

function selectAll(v){
  t=document.frm.total.value
  //
  for(i=0;i<t;i++){
    eval("document.frm.cA"+i+".checked="+v);
  }
}