/*********************For Contact**************************/
var curPageURL = window.location.href;
var redi_url = curPageURL;
$(document).ready(function(){
var options = {
beforeSend: function(){
$(".loading").show();
$("#msg").html("");
},
uploadProgress: function(event, position, total, percentComplete){
},
success: function(){
$('input:submit').attr("disabled", false);
},
complete: function(response){
$(".loading").hide();
$("#msg").show();
if(response.responseText == 'sent'){
$("#msg").html("Thanks for Contact With us.");
$("#msg").fadeOut(9000);
setTimeout(function(){
document.location=redi_url;
}, 2000);
}else{
$("#msg").html(""+response.responseText+"");
$("#msg").fadeOut(5000);
}
},
error: function(){
$("#msg").html(" ERROR: unable to submit.");
}
};
$("#contactFrm").ajaxForm(options); // for form id name
});