function getAlertVersicherungContainer( content )
{
//  alert( alert_ContainerWidth + " " + alert_HeaderHeight + " " + alert_ContentHeight + " " + alert_FooterHeight + " " + alert_ContainerHeight + " " + alert_ContentWidth + " " + alert_TableWidth );

  result = "";
  
  result += "<div id=\"div_AlertVersicherungContainer\" style=\"position:fixed; left:50%; top:50%; width:" + alert_ContainerWidth + "px; height:" + alert_ContainerHeight + "px; margin-left:-" + (alert_ContainerWidth/2) + "px; margin-top:-" + (alert_ContainerHeight/2) + "px; background:#ede2bc; border: 3px solid #ff0000; visibility: hidden;\">";
  result += "  <div style=\"position:relative; float:left; left:0px; top:0px; width:100%; height:" + alert_HeaderHeight + "px;\">";
  result += "    <div style=\"position:relative; float:left; left:0px; top:0px; width:" + alert_HeaderHeight + "px; height:" + alert_HeaderHeight + "px;\">";

  result += "    <table width=\"100%\" height=\"100%\">";
  result += "      <tr width=\"100%\" height=\"100%\" align=\"center\">";
  result += "        <td width=\"100%\" height=\"100%\" valign=\"middle\" style=\"color:#ff0000; font-size:50px; font-weight:bold;\">!</td>";
  result += "      </tr>";
  result += "    </table>";

  result += "    </div>";
  result += "    <div style=\"position:relative; float:right; left:0px; top:0px; width:" + (alert_ContainerWidth-alert_HeaderHeight) + "px; height:" + alert_HeaderHeight + "px;\">";
  result += "      <p style=\"font-weight:bold; font-size:14px; margin-top:15px; padding-left:20px;\">";
  result += "        Nicht alle Versicherungen verf&uuml;gbar!";
  result += "      </p>";
  result += "      <p style=\"font-weight:bold; padding-left:20px;\">";
  result += "        Folgende Ausfallgr&uuml;nde traten auf:";
  result += "      </p>";
  result += "    </div>";
  result += "  </div>";
  result += "  <div style=\"position:relative; float:left; left:0px; top:0px; width:100%; height:" + alert_ContentHeight + "px;\">";
  result += "    <div style=\"position:relative; overflow:auto; float:left; left:20px; top:5px; width:" + alert_ContentWidth + "px; height:" + (alert_ContentHeight-10) + "px;\">";

  result += content;

  result += "    </div>";
  result += "  </div>";
  result += "  <div style=\"position:relative; float:left; left:0px; top:0px; width:100%; height:" + alert_FooterHeight + "px;\">";
  result += "    <button style=\"width:60px; height:25px; margin-top:10px; margin-left:" + (alert_ContainerWidth/2-30) + "px; color:#bc5900; font-weight:bold; background-color:#fbeeae; border:solid 1px;\" onclick=\"switch_visibility('div_AlertVersicherungContainer')\">OK</button>";
  result += "  </div>";
  result += "</div>";

  return result;
}

function hideAlertVersicherungContainer()
{
  document.getElementById("div_alertVersicherungContainer").innerHTML = "";
}

function clear_tempSession()
{
  $.get("index.php", 
    { 
      eID: 'ajax_clear__tempSession_php'
    },
    function(data) {
    }
  );
}

function ausfallTest_checkbox(ID)
{
  if ( document.getElementById(ID).checked )
    value = "ja";
  else
    value = "";

  parameter = "?" + ID + "=" + value;

  makeRequest_vers('update_versicherung.php',parameter);
}

function ausfallTest_input(name)
{
  value = document.getElementById(name + "_val").value;

  parameter = "?" + name + "=" + value;

  makeRequest_vers('update_versicherung.php',parameter);
}

function ausfallTest_select(ID)
{
  value = document.getElementById(ID).options[document.getElementById(ID).selectedIndex].value;

  parameter = "?" + ID + "=" + value;

  makeRequest_vers('update_versicherung.php',parameter);
}

function ausfallTest_global(name,value)
{
  parameter = "?" + name + "=" + value;

  makeRequest_vers('update_versicherung.php',parameter);
}


function ausfallTest()
{
  makeRequest_vers('update_versicherung.php','');
}


function ausfallTest_SBU()
{
  alert("Selbständige BU: Ausfalltest nicht implementiert...");
}

function ausfallTest_KRV()
{
  alert("Klassische RV: Ausfalltest nicht implementiert...");
}

function ausfallTest_FRV()
{
  alert("Fondsgebundene RV: Ausfalltest nicht implementiert...");
}



function ausfallTest_versicherungsart()
{
  alert("Versicherungsart: Ausfalltest nicht implementiert...");
}

