function makeAdresse(adresse, domain, klasse){
  tmp = '<a ';
  if(klasse != ""){ tmp += 'class=\"'+klasse+'\" '; }
  tmp += 'href=\"mailto:' + adresse + '@' + domain + '\">';
  tmp += adresse + '@' + domain + '</a>';
  return tmp;
}

function makeEMail(adresse, domain){
  tmp = adresse + '@' + domain;
  return tmp;
}

function in_array (needle, haystack, argStrict) {
    // http://kevin.vanzonneveld.net
    // +   original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // +   improved by: vlado houba
    // +   input by: Billy
    // +   bugfixed by: Brett Zamir (http://brett-zamir.me)
    // *     example 1: in_array('van', ['Kevin', 'van', 'Zonneveld']);
    // *     returns 1: true
    // *     example 2: in_array('vlado', {0: 'Kevin', vlado: 'van', 1: 'Zonneveld'});
    // *     returns 2: false
    // *     example 3: in_array(1, ['1', '2', '3']);
    // *     returns 3: true
    // *     example 3: in_array(1, ['1', '2', '3'], false);
    // *     returns 3: true
    // *     example 4: in_array(1, ['1', '2', '3'], true);
    // *     returns 4: false

    var key = '', strict = !!argStrict;

    if (strict) {
        for (key in haystack) {
            if (haystack[key] === needle) {
                return true;
            }
        }
    } else {
        for (key in haystack) {
            if (haystack[key] == needle) {
                return true;
            }
        }
    }

    return false;
}



function showDiv(cTmpID)
{
    top.document.getElementById(cTmpID).style.display = '';
}

function hideDiv(cTmpID)
{
    top.document.getElementById(cTmpID).style.display = 'none';
}


function showAlertBox(sTxtMeldung, sTxtButton, sButtonOnClick, nHeight)
{
  top.document.getElementById('DIV_Confirm').style.height = nHeight+'px';
  top.document.getElementById('DIV_Confirm').style.verticalAlign = 'middle';
  top.document.getElementById('DIV_Confirm').innerHTML = '<p style=\'margin-top:30px;margin-bottom:20px;font-weight:bold;\'>'+sTxtMeldung+'</p>';
  var cTmp = '<button onclick="hideDiv(\'DIV_Confirm\');'+sButtonOnClick+'" class="aktiv">'+sTxtButton+'</button>';
  top.document.getElementById('DIV_Confirm').innerHTML += cTmp;
  showDiv('DIV_Confirm');
}

