 $(document).ready(function() {	
							
	//handle the user interaction with the textbox
	$('input.domainchecker').
    focus(function() {
        if(this.title==this.value) {
            this.value = '';
            $(this).css({'color' : '#333'});
        }
    }).
    blur(function(){
        if(this.value=='') {
            this.value = this.title;
            $(this).css({'color' : '#999'});
        }
    });

	// handle the form submission validation 
	$("form").submit(function(e) {
		// Grab the inputted domain name as a string
		var domain = jQuery.trim($("input#txtDomain").val());
	
		if ($("input.domainchecker").val() == "type your name here")
		{
			alert("Please enter a domain name to check.");
			e.preventDefault();
			return false;
		} 
		// Update the hidden input field by simply appending '.tel' 
		$("#telDomain").val(domain + ".tel");
		return true;
	});

});



