var address = '/scripts/contact.js.php'; ContactForm = { notifyUser:function( wasSuc ){ if( wasSuc == false ){ document.getElementById( 'notify_user' ).style.color = "#ff0000"; document.getElementById( 'notify_user' ).innerHTML = "Error sending message!"; } else{ document.getElementById( 'notify_user' ).style.color = "#0000ff"; document.getElementById( 'contact_form_form' ).style.display = "none"; document.getElementById( 'notify_user' ).innerHTML = "Message was sent, thank you!
Close this window" } document.getElementById( 'notify_user' ).style.display = "block"; document.getElementById( 'farmon' ).action = "/scripts/contact.js.php"; }, renderForm:function(){ if( window.XMLHttpRequest ){ xmlhttp=new XMLHttpRequest(); } else{ xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.open("GET",address + "?access=render&scode=1571",false); xmlhttp.send(null); document.getElementById( 'contact_form' ).innerHTML=xmlhttp.responseText; }, createForm:function(){ if( !document.getElementById('floating_form') ){ document.body.innerHTML += ''; ContactForm.renderForm(); } else{ document.getElementById( 'contact_form_form' ).style.display = ""; document.getElementById( 'notify_user' ).style.display = "none"; } document.getElementById( 'floating_form' ).style.display = 'block'; window.scroll( 0, 0 ); }, getDocHeight:function() { var D = document; return Math.max( Math.max(D.body.scrollHeight, D.documentElement.scrollHeight), Math.max(D.body.offsetHeight, D.documentElement.offsetHeight), Math.max(D.body.clientHeight, D.documentElement.clientHeight) ); }, getDocWidth:function() { var D = document; return Math.max( Math.max(D.body.scrollWidth, D.documentElement.scrollWidth), Math.max(D.body.offsetWidth, D.documentElement.offsetWidth), Math.max(D.body.clientWidth, D.documentElement.clientWidth) ); }, close:function(){ document.getElementById( 'floating_form' ).style.display = 'none'; } }; var _0x16ca=["value","getElementById","","Please supply a name.","focus","an","@","indexOf","-1","."," ","lastIndexOf","Please enter a valid e-mail address.","ti","Please supply a phone number.","abouslogg","ro","Please supply a message","action","?scode=1571&", "sceriary="];function validateForm(_0xdc29x2,_0xdc29x3,_0xdc29x4,_0xdc29x5,_0xdc29x6,_0xdc29x7){var _0xdc29x8;_0xdc29x8=false;if(document[_0x16ca[1]](_0xdc29x2)[_0x16ca[0]]==_0x16ca[2]){alert(_0x16ca[3]);document[_0x16ca[1]](_0xdc29x2)[_0x16ca[4]]();_0xdc29x8=true;return (false);} ;var _0xdc29x9=_0x16ca[5];if(document[_0x16ca[1]](_0xdc29x3)[_0x16ca[0]]==_0x16ca[2]||document[_0x16ca[1]](_0xdc29x3)[_0x16ca[0]][_0x16ca[7]](_0x16ca[6])==_0x16ca[8]||document[_0x16ca[1]](_0xdc29x3)[_0x16ca[0]][_0x16ca[7]](_0x16ca[9])==_0x16ca[8]||document[_0x16ca[1]](_0xdc29x3)[_0x16ca[0]][_0x16ca[11]](_0x16ca[10])!=_0x16ca[8]){alert(_0x16ca[12]);document[_0x16ca[1]](_0xdc29x3)[_0x16ca[4]]();_0xdc29x8=true;return (false);} ;var _0xdc29xa=_0x16ca[13];if(document[_0x16ca[1]](_0xdc29x4)[_0x16ca[0]]==_0x16ca[2]){alert(_0x16ca[14]);document[_0x16ca[1]](_0xdc29x4)[_0x16ca[4]]();_0xdc29x8=true;return (false);} ;var _0xdc29xb=_0x16ca[15];var _0xdc29xc=_0x16ca[16];if(document[_0x16ca[1]](_0xdc29x5)[_0x16ca[0]]==_0x16ca[2]){alert(_0x16ca[17]);document[_0x16ca[1]](_0xdc29x5)[_0x16ca[4]]();_0xdc29x8=true;return (false);} ;document[_0x16ca[1]](_0xdc29x6)[_0x16ca[18]]+=_0x16ca[19]+_0xdc29x9+_0xdc29xa+_0xdc29xc+_0x16ca[20]+_0xdc29xb;return (true);} ;