$(function() {
			
	// When this jawn is submitted, run this...
	$('#ProStoresFormMail').submit(function() {
		
		message = new Array();
		
		$("#ProStoresFormMail :input").each(function() {
			
			// Get the type defined...
			type = $(this).attr('type');
			
			push = false;
			
			switch(type)
			{
				
				case 'checkbox':
					// Only add the value if the checkbox is checked...
					if($(this).attr('checked')) {
						push = true;
					}
				break;
										
				case 'submit':
					// No reason to add this with only one possible action...
					push = false;
				break;
				
				default:
					// textareas, inputs, select, etc...
					push = true;
				break;
					
			}
		
			if(push && $(this).attr('class') != 'ProStoresField') {
				message.push($(this).attr('name') + ': ' + $(this).attr('value'));
			}
		
		});
		
		
		$('#ProStoresMessage').attr('value', message.join("\n\n"));
		
	});

});
