//Validate the contact form
function validateMyForm(formData, jqForm, options) { 
    for (var i=0; i < formData.length; i++) { 
        if (!formData[i].value) { 
            setTimeout(function() {animatedcollapse.show('contact-error')}, 10); 
			setTimeout(function() {animatedcollapse.hide('contact-error')}, 3000); 
            return false; 
        } 
    } 
    setTimeout(function() {animatedcollapse.show('sent')}, 900);
	setTimeout(function() {animatedcollapse.hide('sent')}, 5000);
}

//Validate the comment form
function validateMyComment(formData, jqForm, options) { 
    for (var i=0; i < formData.length; i++) { 
        if (!formData[i].value) { 
            setTimeout(function() {animatedcollapse.show('comment-error')}, 10); 
			setTimeout(function() {animatedcollapse.hide('comment-error')}, 3000); 
            return false; 
        } 
    } 
    setTimeout(function() {animatedcollapse.show('comment-posted')}, 900);
	setTimeout(function() {animatedcollapse.hide('comment-posted')}, 5000);
}