$(document).ready(function(){
	
$('#invite_button').click(function(){
 if($('#invite_email').val()!=""){
$(this).attr("disabled","disabled");
$('#invite_hint').css("color","black");
$('#invite_hint').html("Sending... Please Wait...");
$('#invite_hint').css("backgroundColor","#c7efc9");
$.get('s_single_invite.php',{q:$('#invite_email').val()},
function (response){
 //$('#invite_hint').html(response_ok);
result=escape(response);
//setTimeout(funtion() {show_invite_hint(result);}, 1500);
setTimeout("show_invite_hint(result)", 1500);
//$('#invite_hint').html(response);

});
}
else
{
$('#invite_hint').html("Enter Valid Email!");
$('#invite_hint').css("color","red");
$('#invite_hint').css("textDecoration","none");
$('#invite_hint').css("fontWeight","normal");


}

});

	
});


	
function show_invite_hint(resp)
{
$('#invite_button').removeAttr("disabled");
$('#invite_hint').empty();
$('#invite_hint').css("backgroundColor","#ffffdf");
$('#invite_hint').html(unescape(resp));
$('#invite_hint').fadeIn("slow");
$('#invite_email').val("");
}










