function GetElement(id)
{
    if (document.getElementById)	return document.getElementById(id);	/* DOM    */
    else if (document.all)		return document.all[id];		/* IE 4 + */
    else if (document.layers) 		return document.layers[id];		/* NS 4 + */
    return false;
}

function clearSearch() 
{
    Felder = new Array("vorname", "was", "str", "str_nr", "name", "nachname", "branche", "plz", "vorwahl", "ort", "produkt", "marke");
    var elem;
    for (var i = 0; i < Felder.length; i++)
    {
        elem = document.getElementById(Felder[i]);
        if (elem != null) {
            elem.value = '';
        }
    }
}

function ShowRegion()
{
    GetElement("button_region_weitere_ein").style.display="none";
    GetElement("button_region_weitere_aus").style.display="inline";
    GetElement("region_weitere").style.display="inline";
}
function HideRegion()
{
    GetElement("button_region_weitere_ein").style.display="inline";
    GetElement("button_region_weitere_aus").style.display="none";
    GetElement("region_weitere").style.display="none";
}



function xxx_changeValue(value) {
    GetElement("btn_aendern_"+value).style.display="none";
    GetElement("btn_ok_"+value).style.display="inline";
    GetElement("value_text_"+value).style.display="none";
    GetElement("value_field_"+value).style.display="inline";
}

function xxx_saveValue(value) {
    GetElement("btn_aendern_"+value).style.display="inline";
    GetElement("btn_ok_"+value).style.display="none";
    GetElement("value_text_"+value).style.display="inline";
    GetElement("value_field_"+value).style.display="none";
    ajxsubmit('daten_ueberpruefen','');return false;
}


function ShowBranchen()
{
    GetElement("button_branchen_weitere_ein").style.display="none";
    GetElement("button_branchen_weitere_aus").style.display="inline";
    GetElement("branchen_weitere").style.display="inline";
}
function HideBranchen()
{
    GetElement("button_branchen_weitere_ein").style.display="inline";
    GetElement("button_branchen_weitere_aus").style.display="none";
    GetElement("branchen_weitere").style.display="none";
}

function ShowAuszeichnung()
{
    GetElement("button_auszeichnung_weitere_ein").style.display="none";
    GetElement("button_auszeichnung_weitere_aus").style.display="inline";
    GetElement("auszeichnung_weitere").style.display="inline";
}
function HideAuszeichnung()
{
    GetElement("button_auszeichnung_weitere_ein").style.display="inline";
    GetElement("button_auszeichnung_weitere_aus").style.display="none";
    GetElement("auszeichnung_weitere").style.display="none";
}


function ShowTyp()
{
    GetElement("button_typ_weitere_ein").style.display="none";
    GetElement("button_typ_weitere_aus").style.display="inline";
    GetElement("typ_weitere").style.display="inline";
}
function HideTyp()
{
    GetElement("button_typ_weitere_ein").style.display="inline";
    GetElement("button_typ_weitere_aus").style.display="none";
    GetElement("typ_weitere").style.display="none";
}



function ShowSearch()
{
    GetElement("linie_suche").style.display="none";
    GetElement("button_einblenden").style.display="none";
    GetElement("button_ausblenden").style.display="inline";
    GetElement("search_forms").style.display="inline";
}

function HideSearch()
{
    GetElement("linie_suche").style.display="inline";
    GetElement("button_ausblenden").style.display="none";
    GetElement("button_einblenden").style.display="inline";
    GetElement("search_forms").style.display="none";
}
