function send() {
document.suche.screeny.value=screen.height;
document.suche.screenx.value=screen.width;
document.suche.action='http://www.daistesja.de/'+radioWert(document.suche.bereich)+'/index.php';
if (document.suche.stichwort.value.length>2)
document.suche.submit();
else {
alert('Suchwort benötigt mindestens 3 Zeichen');
return false;
}
}

function activate() {
document.getElementById('submitsuche').href="javascript: send()";
}

function radioWert(rObj) {
    for (var i=0; i<rObj.length; i++) if (rObj[i].checked) return rObj[i].value;
    return false;
  }

// Konfiguration der ID's,
// welche auf eine Hoehe gebracht werden sollen
rel_id = new Array();
rel_id[0] = 'links';
rel_id[1] = 'maincontent';


var max_hoehe = 0;
var nn = '' ;
function setDivHeight(pxOffset)
{
// return true;
    // Pruefung, ob alle konfigurierten ID auch tatsaechlich im HTML vorkommen
    // gleichzeitig ermitteln der Offset-Hoehe,
    // um spaeter die ID auf den gemeinsamen hoechsten Wert stellen
    for (var i = 0; i < rel_id . length; i++) {
        if (!document . getElementById(rel_id[i])) {
            return true;
        } else {
            var hoehevals = document . getElementById(rel_id[i]) . offsetHeight;
            nn = nn + ' ' + hoehevals;
            if (hoehevals > max_hoehe) {
                max_hoehe = hoehevals;
            }
        }
    }
//    max_hoehe = '' + max_hoehe / 10 + 'em';
    max_hoehe = '' + (max_hoehe + 40) + 'px';
   // alert (max_hoehe);
    for (var i = 0; i < rel_id . length; i++) {
        setHeight(rel_id[i], max_hoehe);
    }
}

function setHeight(elem, hoehe)
{
    document . getElementById(elem) . style . height = hoehe;
}

function init(func)
{
    if (1) {
        var oldonload = window . onload;
        if (typeof window . onload != 'function') {
            window . onload = func;
        }
    }
}

init(
    function()
    {
        setDivHeight(0);
    }
    );