contactPrefix="mc9ec96e1d"; function ContactFormSubmit() { var formContainer; if (formContainer = document.getElementById("contactFormContainer")) { var params = new Array(); if (ffield = document.getElementById("mc9ec96e1dname")) { params[params.length] = "mc9ec96e1dname=" + encodeURIComponent(ffield.value); } if (ffield = document.getElementById("mc9ec96e1demail")) { params[params.length] = "mc9ec96e1demail=" + encodeURIComponent(ffield.value); } if (ffield = document.getElementById("mc9ec96e1dphone")) { params[params.length] = "mc9ec96e1dphone=" + encodeURIComponent(ffield.value); } if (ffield = document.getElementById("mc9ec96e1denquiry")) { params[params.length] = "mc9ec96e1denquiry=" + encodeURIComponent(ffield.value); } if (ffield = document.getElementById("mc9ec96e1doutside")) { params[params.length] = "mc9ec96e1doutside=1"; } action_function = function(ajax_response) { formContainer.innerHTML = ajax_response; }; PM_Ajax_Post("ajax_contactus.php", params.join("&"), action_function); } } // end of fn ContactFormSubmit function ClearFilledInput(element, filltext) { if (element.value == filltext) { element.value = ''; } } // end of fn ClearFilledInput function FillEmptyInput(element, filltext) { if (element.value == '') { element.value = filltext; } } // end of fn FillEmptyInput