// JavaScript Document
	/*function Ajax_SecurityCode_Check(code, input_code)
	{
		
	}	*/



 $(document).ready(function(){	
								
	/*	$(".hide_on_js").css("display", "none");
		
		///Text change effect code block below	
		$('#first_name').attr('value', 'Your Name: ');
		$('#first_name').click(function() {
			$('#first_name').attr('value', '');			
		});		
		$('#first_name').mouseleave(function() {
			if ( $('#first_name').attr('value') =='' )
			$('#first_name').attr('value', 'Your Name: ');
		});
		
		
		$('#last_name').attr('value', 'How did you hear from us?');
		$('#last_name').click(function() {
			$('#last_name').attr('value', '');
			check_empty();
		});
		$('#last_name').mouseleave(function() {
			if ( $('#last_name').attr('value') =='' )
			$('#last_name').attr('value', 'How did you hear from us?');
		});
		
		
		
		$('#company').attr('value', 'Your Phone Number:');
		$('#company').click(function() {
			$('#company').attr('value', '');
		});
		$('#company').mouseleave(function() {
			if ( $('#company').attr('value') =='' )
			$('#company').attr('value', 'Your Phone Number:');
		});
		
		
		
		$('#email').attr('value', 'Your Email Address:');
		$('#email').click(function() {
			$('#email').attr('value', '');
		});
		$('#email').mouseleave(function() {
			if ( $('#email').attr('value') =='' )
			$('#email').attr('value', 'Your Email Address:');
		});
		
		
		
		$('#position').attr('value', 'Date of Event:');
		$('#position').click(function() {
			$('#position').attr('value', '');
		});
		$('#position').mouseleave(function() {
			if ( $('#position').attr('value') =='' )
			$('#position').attr('value', 'Date of Event:');
		});
		
		
		
		$('#comments').attr('value', 'Message:');
		$('#comments').onfocus(function() {
			$('#comments').attr('value', '');
		});
		$('#comments').blur(function() {
			if ( $('#comments').attr('value') =='' )
			$('#comments').attr('value', 'Message:');
		});
		
			*/	
	
	
		/*Validation code block below*/
		erro_msg_required = "<span style='color:red'>*<span>";		
		
		$("#contact_form").validate({
			rules: {
				email: {
					required: true,
					email: true
				},
				company: {
					required: true
				},
				last_name: {
					required: true
				},
				first_name: {
					required: true
				},
				comments: {
					required: true,
				}
			},messages: {
				email: '<span style=\'color:red; padding-left:5px; font-size=8px;\'>invalid email<span>',
				comments: erro_msg_required,
				last_name: erro_msg_required,
				first_name: erro_msg_required,
				company: erro_msg_required
			}
		
	});
  });
