/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function checkWhois(domain, ending, result_id)
{
    var parameterString = "domain=" + domain + "&ending=" + ending;
    //alert(parameterString);
    $.ajax({
        type: "POST",
        url: "bin/check_whois.php",
        data: parameterString,
        success: function(html_value)
        {
            if(html_value.toString() == "1")
            {
                $("#" + result_id).val("Domain ist frei!");
            }
            else
            {
                $("#" + result_id).val(html_value);
            }
        }
    });
}

