
var tooltip;

$(document).ready(

    function()
    {
         $("#btn_calc").click( function() { kosten_berechnen(); } )

         $("#SampleInfo").hover( function() { $("#SampleInfo").css( 'border', '1px solid #800000' ); })
         $("#SampleInfo").mouseout( function() { $("#SampleInfo").css( 'border', '1px solid #cecece' ); })

         $("#sel_applicant").change(   function()
                                       {
                                            if ( $(this).val() == 1 )
                                                 $("#lbl_salary_2").text( 'Einkommen Ehemann' );
                                            if ( $(this).val() == 2 )
                                                 $("#lbl_salary_2").text( 'Einkommen Ehefrau' );
                                            if ( $(this).val() == 3 )
                                                 $("#lbl_salary_2").text( 'Einkommen Partei2' );

                                       })

         $("#ico_info").mouseenter(
         function()
         {
              tooltip = $.gritter.add({
              title: 'Eingabe',
              text: 'Numerische',
              image: 'Design/ico_info_16.png',
              sticky: false,
              time: 10000,
              classname: 'gritter-notice-wrapper'
         });  // mouseover

         $("#ico_info").mouseout(
         function()
         {
              $.gritter.remove( tooltip );
         });

    });

});



  function showValues() {
      var fields = $(":input").serializeArray();
      $("#div_dbgout").empty();
      jQuery.each(fields, function(i, field){
        $("#div_dbgout").append(field.name + ": " + field.value + "<br/>");
      });
    }

function showValues555()
{
      var str = $("#form_divorce").serialize();
      alert(str);
}

function send_form()
{

    $.ajax({
    type: "POST",
    async: false,
    url: "devi_lib/form_divorce_handler.php",
    data: "pAction=save_partien&pType=Moinsen",
    success: function(html)
    {
    $("#test_debug").html(html);
    },
    error: function()
    { alert("Error!"); }

    });

}
