function whois(domain_name) { new Ajax.Request("http://test.enom.com/interface.asp?command=check&tld=com&sld=" + domain_name, { method: 'get', onSuccess: function(transport) { alert(transport.responseText)} ) }