$(function(){
									$('#contact_frm').submit(function(){
										var errors = '';
										var re = /^[A-Za-z0-9\-\.\_]{1,}\@([A-Za-z0-9\-\.\_]{1,}\.){1,}[a-z]{2,}$/;
										
										if($('#contact_name').val()==''){
											errors += '<p>&bull; Required value (Contact Name) is missing.</p>';
										}
										
										if(!re.test($('#contact_email').val())){
											errors += '<p>&bull; Email address is not valid.</p>';
										}
										
										if(captchaCheck()!=1){
											errors += '<p>&bull; The Verification Code you entered is invalid.<br/>Please try again, or click refresh if the current image is difficult to read.</p>';
										}
										if(errors != ''){
											showPopup('Form Submission Error', errors);
											return !1;
										}
									});
});
						
								function captchaCheck(){
									return $.ajax({url: '../captcha/captchac_check.ajax.php',data: ({Turing:$('input[name=Turing]').val()}),
 async: false}).responseText;
								}
								
								function captchaRefresh(){
									$('#captcha_img').attr('src',$('#captcha_img').attr('src') + '?' + (new Date()).getMilliseconds());
									return !1;
								}
								
								function showPopup(title,html,w,h){
									title=title||'';
									w = w || 300;
									h = h || 150;
									$('#TB_tmp').remove();
									$('<div id="TB_tmp" style="display:none"><div>'+html+'</div></div>').appendTo('body');
									tb_show(title, '#TB_inline?height='+h+'&width='+w+'&inlineId=TB_tmp&modal=false')
									return !1;
								}
		