// JavaScript Document
function sendNewPassword() {
	jQuery().ready(function()
	{
        jQuery('div#czat').load('includes/ajax/new_password.php?email='+jQuery("input#email").val());
	});
}

function newsletterSubscribe() {
	jQuery().ready(function()
	{
        jQuery('div#newsletter').load('includes/ajax/newsletter.php?subscriberEmail='+jQuery("input#subscriberEmail").val());
	});
}

function checkForm() {
    jQuery().ready(function(e) {
        jQuery.ajax({
            type: "POST",
            url: "includes/ajax/contact.php",
            data: jQuery("#registerForm").serialize(true),
            success: function(msg){
                jQuery("#registration").html(msg);
            }
        });
        
    });
}

function checkOfferForm() {
    jQuery().ready(function(e) {
        jQuery.ajax({
            type: "POST",
            url: "includes/ajax/offer.php",
            data: jQuery("#registerForm").serialize(true),
            success: function(msg){
                jQuery("#registration").html(msg);
            }
        });
        
    });
}

function checkIndexForm() {
    jQuery().ready(function(e) {
        jQuery.ajax({
            type: "POST",
            url: "includes/ajax/index.php",
            data: jQuery("#registerForm").serialize(true),
            success: function(msg){
                jQuery("#registration").html(msg);
            }
        });
        
    });
}

function checkOfferForm() {
    jQuery().ready(function(e) {
        jQuery.ajax({
            type: "POST",
            url: "includes/ajax/company.php",
            data: jQuery("#registerForm").serialize(true),
            success: function(msg){
                jQuery("#registration").html(msg);
            }
        });
        
    });
}

function checkPortfolioForm() {
    jQuery().ready(function(e) {
        jQuery.ajax({
            type: "POST",
            url: "includes/ajax/portfolio.php",
            data: jQuery("#registerForm").serialize(true),
            success: function(msg){
                jQuery("#registration").html(msg);
            }
        });
        
    });
}

