function checkall(check,classname) {
    alloptions = document.getElementsByClassName(classname);
    for(i = 0; i < alloptions.length; i++) {
        alloptions[i].checked = check;
    }
}

function checkall_in_element( element, check, classname ) {
    alloptions = $(element).select( "."+classname )
    for(i = 0; i < alloptions.length; i++) {
        alloptions[i].checked = check;
    }
}
	      
function over(id,name)	{
    icon = new Image();
    icon.src = "/images/default/siteimg/icon/"+ name +"_mo.gif";
    $(id).src = icon.src;
}

function out(id,name)	{
    icon = new Image();
    icon.src = "/images/default/siteimg/icon/"+ name +".gif";	
    $(id).src = icon.src;
}

function ahide(el,txt1, txt2,css) {
    Effect.BlindUp('inhalt_user_' + el)
    $("link_user_" + el).replace('<a class="' + css + '" href="#" id="link_user_' + el + '" onclick="ashow(\'' + el + '\',\'' + txt1 + '\',\'' + txt2 + '\',\'' + css + '\'); return false;">' + txt1 + '</a>')
}
          
function ashow(el,txt1,txt2,css) {
    Effect.BlindDown('inhalt_user_' + el, {duration: 0.2})
    $("link_user_" + el).replace('<a class="' + css + '" href="#" id="link_user_' + el + '" onclick="ahide(\'' + el + '\',\'' + txt1 + '\',\'' + txt2 + '\',\'' + css + '\'); return false;">' + txt2 + '</a>')
} 
          
function chgcitylinks() {
    $A($('register_select_team_city_letter').getElementsByClassName('cityselect_act')).each( function(item) { item.className = 'cityselect' });

}
function chgcitylinks_nk() {
    $A($('newklub_select_team_city_letter').getElementsByClassName('cityselect_act')).each( function(item) { item.className = 'cityselect' });

}
          
function showreginfo(showelem) {
    $A($('reginfo_box').getElementsByClassName('reginfo_element')).each(Element.hide); 
    Effect.Appear(showelem, {duration:1.2});  
}
