document.write('');document.write('');var aIds = Array( 'pg_21b8d8477a' );var aId = Array ();function ChangePage( to_hide, to_show ){ var tbl_hide = document.getElementById( aIds[to_hide] ); var tbl_show = document.getElementById( aIds[to_show] ); if ( typeof(tbl_hide)=='object' && tbl_hide!=null ) if ( typeof(tbl_show)=='object' && tbl_show!=null ) { tbl_hide.style.display = 'none'; tbl_show.style.display = ''; } }function LettersOnly( old_res, id, field_title ){ if ( old_res==0 ) { var el = document.getElementById( id ); if ( typeof(el)=='object' && el!=null ) { var re = /^[a-zA-Z\s]+$/; if (el.value.search(re) == -1 ) { alert( '"' + field_title + '" must contain letters only' ); return 1; } } } return 0;}function Email( old_res, id, field_title ){ if ( old_res==0 ) { var el = document.getElementById( id ); if ( typeof(el)=='object' && el!=null ) { var re = /^[a-zA-Z0-9_\.\-]+@([a-zA-Z0-9][a-zA-Z0-9-]+\.)+[a-zA-Z]{2,6}$/; if (el.value.search(re) != -1 ) return 0; else { alert( '"'+field_title+'" must be email' ); return 1; } } } return 0;}document.write('
');document.write('');document.write('');document.write('');function CheckPage21b8d8477a(){ var nResult = 0; nResult += LettersOnly( nResult, 'fld_dc81212e62','Surname' ); nResult += LettersOnly( nResult, 'fld_57d934ea6d','First Name' ); nResult += Email( nResult, 'fld_3564762228','Email' ); if ( nResult == 0 ) { document.getElementById('loading').style.display='inline'; document.getElementById('imgcode_code').style.display='none'; CheckImg(); return; if (1) { var el = document.getElementById( 'frm_8a9b299044' ); if ( typeof(el)=='object' && el != null ) el.submit(); } else ChangePage( 0, 1 ); }}document.write(' ');document.write(' ');document.write(' ');document.write(' ');document.write(' ');document.write(' ');document.write(' ');document.write(' ');document.write(' ');document.write(' ');document.write(' ');document.write(' ');document.write(' ');document.write(' ');document.write(' ');document.write(' ');document.write(' ');document.write(' ');document.write(' ');document.write(' ');document.write(' ');document.write('');document.write(' ');document.write(' ');document.write('');document.write(' ');function changeAccessCodeImg(){ var randim = Math.random(); document.images.captcha.src = "http://www.marsbrookproperty.com/phpforms/index.php?frm=8a9b299044&randm="+ randim + ""; document.forms['frm_8a9b299044'].imgcode_id.value =+ randim + ""; } changeAccessCodeImg(); function CheckImg(){ var s = document.createElement('script'); s.setAttribute('type','text/javascript'); cl_code = document.getElementById('imgcode_code'); checimg = cl_code.value; randim = document.forms['frm_8a9b299044'].imgcode_id.value; document.documentElement.firstChild.appendChild(s); ff_onload_called=false; s.setAttribute('src', "http://www.marsbrookproperty.com/phpforms/index.php?frm=8a9b299044&chrandm=" + randim + "&checimg=" + checimg + ""); s.setAttribute('onload', "ff1()"); }var ff_onload_called=false;function ff1(){ if(ff_onload_called) return; ff_onload_called=true; document.getElementById('loading').style.display='none'; document.getElementById('imgcode_code').style.display=''; if (ci == 3) { alert("Sorry, the code you've entered is invalid. Please try again."); return 1; } if (ci == 2 ) { var el = document.getElementById('frm_8a9b299044'); if ( typeof(el)=='object' && el != null ) { el.submit() } }}document.write(' ');document.write('');document.write(' ');document.write(' ');document.write('');document.write(' ');document.write(' ');document.write(' ');document.write(' ');document.write(' ');document.write(' ');document.write('
');document.write(' Surname *');document.write(' ');document.write(' ');document.write('
');document.write(' First Name *');document.write(' ');document.write(' ');document.write('
');document.write(' Telephone');document.write(' ');document.write(' ');document.write('
');document.write(' Email *');document.write(' ');document.write(' ');document.write('
');document.write(' Message *
');document.write(' ');document.write('
');document.write('
');document.write(' ');document.write(' Reload image');document.write('
');document.write('
');document.write(' ');document.write('
');document.write(' ');document.write('
');document.write('
');document.write('');document.write('
');document.write(' ');document.write('
');document.write('');