COME SAY HELLO

(function ($)
{
$(document).ready(function()
{
$(‘#contactform input’).focus(function()
{
$(this).removeClass(‘fielderror’);
});

$(‘#contactform textarea’).focus(function() {
$(this).removeClass(‘fielderror’);
});

$(“#contactform #submit”).click(function(){

var subjectVal = $(“#subject”).val(),
messageVal = $(“#message”).val(),
nameVal = $(“#name”).val(),
hasError = false,
email_regex = /^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/,
emailToVal = $(“#emailTo”).val(),
emailFromVal = $(“#emailFrom”).val().toLowerCase();

$(“#contactform_wrap .error”).slideUp();

emailToVal=emailToVal.replace(‘#’,’@’);

if(emailToVal == ”)
{
$(“#emailTo”).addClass(‘fielderror’);
hasError = true;
}
else if( !email_regex.test(emailToVal) )
{
$(“#emailTo”).addClass(‘fielderror’);
hasError = true;
}

if(emailFromVal == ”)
{
$(“#emailFrom”).addClass(‘fielderror’);
hasError = true;
}
else if( !email_regex.test(emailFromVal) )
{
$(“#emailFrom”).addClass(‘fielderror’);
hasError = true;
}

if(messageVal == ”)
{
$(“#message”).addClass(‘fielderror’);
hasError = true;
}

if(nameVal == ”)
{
$(“#name”).addClass(‘fielderror’);
hasError = true;
}

if(hasError == false)
{

$.post(‘http://conraddp.com/wp-content/themes/ePix/lib/inc/contact-send.php’,$(“#contactform”).serialize(),function(data)
{
$(“#contactform_wrap .error”).slideUp();
$(‘#contactform .field’).val(”);
$(“#contactform_wrap .success”).slideDown(function()
{
$(this).delay(5000).slideUp(‘slow’);
});
});

}
else if(hasError == true)
{
$(“#contactform_wrap .error”).slideDown();
}

return false;
});
});
})(jQuery);

Thanks!

Your email was successfully sent. Your enquiry will be dealt with as soon as possible.

Jahleel Addae Kids Jersey

Required fields not completed correctly.

WHERE THE MAGIC HAPPENS

NightSky Entertainment
466 Foothill Blvd
#223
La Canada Flintridge, CA 91011

error: Alert: Please contact us for purchase options