var ls='';

function FncFormInputFocus(strID)
{
    var intZoom             = 40;

    objThis                 = document.getElementById(strID);
    ls                      = objThis.className;

    var strWidth            = Math.round(ls.replace(/w/g, '')*(1+intZoom/100)) + 'px';
    var strFSize            = '14px';

    objThis.style.width     = strWidth;
    objThis.style.fontSize  = strFSize;
    objThis.style.border    = '2px solid #ce0000';
    objThis.style.margin    = '2px 2px 2px 0';

    return;
}

function FncFormInputBlur(strID)
{
    objThis                 = document.getElementById(strID);

    objThis.style.width     = '';
    objThis.style.fontSize  = '';
    objThis.style.border    = 'thin inset';
    objThis.style.margin    = '';
    objThis.className       = ls;
    ls                      = '';

    return;
}

function FncValidate(objForm, strFieldList)
{
    var strError = '';

    var arrFields = strFieldList.split('|');

    for(var i=0; i < arrFields.length; i++)
    {
        var arrTmp = arrFields[i].split(';');
alert(arrTmp[0]);
        /** check 1st letter = @ -> object is a select box **/
        var strTmp = arrTmp[0].replace(/@/g, '');

        if(strTmp == arrTmp[0])
        {
            if(objForm[arrTmp[0]].value == '')
            {
                strError += '- ' + arrTmp[1]+"\n\n";
            }
        }
        else
        {
            if(objForm[strTmp].options[objForm[strTmp].selectedIndex].value == '')
            {
                strError += '- ' + arrTmp[1]+"\n\n";
            }
        }
    }

    if(strError == '') return true;

    alert('+ + + Ihre Angaben sind unvollständig! + + +' + "\n\n"+ strError);

    return false;
}
