﻿jQuery(document).ready(function () {
jQuery('.butSendMessageSend').click(function() {
	var messageSubject = jQuery('#TB_window input.subject').val();
	var messageContent = jQuery('#TB_window textarea.messageBody').val();
	var iChars = '%&*\/<>'; 
	
	for (var i = 0; i < messageSubject.length; i++) { 
	if (iChars.indexOf(messageSubject.charAt(i)) != -1) { 
	alert('Your message contains one of following characters % & * \ / < >. We are currently experiencing some technical difficulties with these characters, so please write your subject and message without them. We apologize for the inconvenience and will fix this as soon as possible. Thank you.'); 
	return false; 
	}} 
	
	for (var i = 0; i < messageContent.length; i++) { 
	if (iChars.indexOf(messageContent.charAt(i)) != -1) { 
	alert('Your message contains one of following characters % & * \ / < >. We are currently experiencing some technical difficulties with these characters, so please write your subject and message without them. We apologize for the inconvenience and will fix this as soon as possible. Thank you.'); 
	return false; 
	}} 
});
});
