
function paction( aktion , par1 , par2 ) {

   document.getElementById( 'action' ).value = aktion ;
   
	document.jstool.submit() ;
}

// ----------------------------------------------------------------
// ----------------------------------------------------------------
function action( aktion , par1 , par2 ) {
   
   
   
   document.getElementById( 'action' ).value = aktion ;
   
	document.jstool.submit() ;

}
// ----------------------------------------------------------------
// ----------------------------------------------------------------
function druckfenster(){
	
	var klasse 		= document.getElementById( 'h_klasse').value ;
	var spieltag 	= document.getElementById( 'h_spieltag').value ;
	var paarung 	= document.getElementById( 'h_paarung').value ;
	var jahr		   = document.getElementById( 'h_jahr').value ;
	
	var p = '../cgi-bin/jstool.pl?active_page=P441_druck' ;
	p += '&h_klasse=' + klasse + '&h_spieltag=' + spieltag ;
	p += '&h_paarung=' + paarung + '&h_jahr=' + jahr ;
	p += '&client=' + document.getElementById( 'client').value ;
	var w = window.open( p , "Druckfenster" , "width=700px,height=800px,resizable=yes,menubar=yes,toolbar=yes" ) ;
	w.focus() ;
	
}
// ----------------------------------------------------------------
// ----------------------------------------------------------------

function change_ausgabeart(){

  document.getElementById( 'action' ).value = 
     document.getElementById( 'ausgabeart' ).value ;
  
  document.jstool.submit() ;
  
}
// ----------------------------------------------------------------
// ----------------------------------------------------------------
function change_sel_klasse(){
	document.getElementById( 'action' ).value = 'show' 
  	document.jstool.submit() ;
	
	
}
// ----------------------------------------------------------------
// ----------------------------------------------------------------
function insert_mannschaft( klasse , id ) {
    document.getElementById( 'action' ).value = 'insert_mannschaft' ;
    document.getElementById( 'par1'  	).value = klasse 		;
    document.getElementById( 'par2'  	).value = id 		; // des select der Mannschaft
  	document.jstool.submit() ;
}
// ----------------------------------------------------------------
// ----------------------------------------------------------------
function delete_mannschaft( klasse , position ) {
    document.getElementById( 'action'   ).value = 'delete_mannschaft' ;
    document.getElementById( 'par1'  	).value = klasse 		;
    document.getElementById( 'par2'  	).value = position 		; // f_position
  	document.jstool.submit() ;
}

// ----------------------------------------------------------------
// ----------------------------------------------------------------
function changetopage( page ) {
	document.getElementById( 'changetopage' ).value = page ;
  	document.jstool.submit() ;
}
// ----------------------------------------------------------------
// ----------------------------------------------------------------
function changejahr( page ) {
    document.getElementById( 'action' ).value = 'show' ;
  	document.jstool.submit() ;
}
// ----------------------------------------------------------------
function changeliga( page ) {
    document.getElementById( 'action' ).value = 'show' ;
  	document.jstool.submit() ;
}
 
// ----------------------------------------------------------------
function new_klasse(){
    document.getElementById( 'action' ).value = 'new_klasse' ;
  	document.jstool.submit() ;
}

// ----------------------------------------------------------------
function new_mannschaft(){
    document.getElementById( 'action' ).value = 'new_mannschaft' ;
  	document.jstool.submit() ;
}

// ----------------------------------------------------------------
