<script language="javascript"> $(document).ready(function() { var loading; var results; form = document.getElementById('form'); loading = document.getElementById('loading'); results = document.getElementById('results'); $('#Submit').click( function() { if($('#Search').val() == "") {alert('please enter a domain');return false;} results.style.display = 'none'; $('#results').html(''); loading.style.display = 'inline'; $.post('process.php?domain=' + escape($('#Search').val()),{ }, function(response){ results.style.display = 'block'; $('#results').html(unescape(response)); loading.style.display = 'none'; }); return false; }); }); </script>