$(document).ready(function(){
	
    $("#submit").click(function(){
        $.post("contactform.php?"+$("#contactbox").serialize(), {},
            function(response){
                var r = eval('('+response+')');
                $("#contact_msg").hide().html(r.msg).fadeIn('slow');
                /*if(r.status==0){
                    $("#contactbox")
                    .hide()
                    .html("<div style='height:400px;' class='c_success'>Thank You, Someone will get back to you soon.</div>")
                    .fadeIn('slow');
                }*/
            });
    });

    $("#refresh").click(function(){
        document.getElementById('captcha').src="get_captcha.php?rnd=" + Math.random();
    });
});
