$(document).ready(function(){	
$(document).keypress(function(e){		if(e.which==13){			if($("#domain").val().length > 0)			{				if($("#domain").val()!='Vul hier een domeinnaam in..')				{					e.preventDefault();					do_search();				}			}			}});
			$("#domain").blur(function(){if($("#domain").val()=='')$("#domain").val('Vul hier een domeinnaam in..');});$('#result').hide();});function do_search(){$('#result').html('<div class="loading" style="display:none;"></div>');var domain=document.getElementById("domain").value;$('#result').animate({opacity:'show',height:'135px',width:'530px',marginTop:'-15px',backgroundColor:'#E7E7E7',paddingLeft:'10px',paddingTop:'5px'},function(){$('#result .loading').fadeIn(200,function(){	$.ajax({		type:'GET',		url:'whois/whois.php',		data:'&domain='+domain,dataType:'html',		success:function(xhr)			{$('#result .loading').fadeOut(200,function()								{$('#result').html(xhr);$('#result').fadeIn(200);prepare_stuff();});},		error:function(xhr){alert(xhr.statusText);}});});});}function prepare_stuff(){$('.info').click(function(){var id=this.id;$('#result').animate({opacity:'show'},function(){$('#result').fadeOut(200,function(){$.ajax(		{	type:'GET',			url:'whois/whois.php',data:'&specific='+id,dataType:'html',			success:function(xhr){$('#result').fadeIn(200,function(){$('#result').html(xhr).fadeIn(200);$('#result').css('overflow-y','scroll');$('#print').click(function(){window.open('whois/whois.php?print=yes&specific='+id);});});},error:function(xhr){alert(xhr.statusText);}});});});});$('.order').click(function(){var id=this.id;$('#result').animate({opacity:'show'},function(){$('#result').fadeOut(200,function(){$.ajax({	type:'GET',	url:'domain_form.php',data:'',dataType:'html',success:function(xhr){$('#result').fadeIn(200,function(){$('#result').html(xhr).fadeIn(200);$('#result').css('overflow-y','scroll').css('height','500px');$('#form_domain').val(id);});},error:function(xhr){alert(xhr.statusText);}});});});});}