","http:","https:","ftp:","prepare(","execute(","odbc_exec(","mssql_query(","mysqli","www","html");
for(var xy=1; xy<24; xy++){
if (xy!=14) {
var argy = "forms_field_"+xy;
if (typeof eval("document.myForm.forms_field_"+xy) !== 'undefined') {
var check_value = eval("document.myForm.forms_field_"+xy+".value");
check_value = check_value.toLowerCase();
for(var in_ar=0; in_ar < injects.length; in_ar++){
if ((check_value.indexOf(injects[in_ar]) > -1)){
//alert(check_value);
eval("document.myForm.forms_field_"+xy+'.value="";')
}
}
}
}
}
}
function lookup(search,nod) {
var xmlhttp=false;
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
try {
xmlhttp = new XMLHttpRequest();
} catch (e) {
xmlhttp=false;
}
}
if (!xmlhttp && window.createRequest) {
try {
xmlhttp = window.createRequest();
} catch (e) {
xmlhttp=false;
}
}
var outext='';
xmlhttp.open("GET", "https://maps.googleapis.com/maps/api/geocode/xml?address="+search,true);
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4) {
var xmlDoc = xmlhttp.responseText;
out = xmlDoc.split("formatted_address>");
if (out[1].indexOf("USA") > -1){
var outext = out[1].replace(", USA", "");
outext = outext.substring(0, outext.length - 5);
if (nod==1 && outext!="") {
document.myForm.forms_field_5.value = outext;
document.myForm.forms_field_6.value = "";
document.myForm.forms_field_4.value ="";
}else if (nod==2 && outext!=""){
document.myForm.forms_field_8.value = outext;
document.myForm.forms_field_9.value = "";
document.myForm.forms_field_7.value="";
}
}
}
}
xmlhttp.send(null);
}
function myalert(message,func){
var pleft = -6;
var ptop = 100; //desktop
var offset = jQuery('#forms_form').offset();
var DIVX=offset.left;
var DIVY=offset.top;
var divline = [];
my_alert2 = document.createElement('div');
document.body.appendChild(my_alert2);
my_alert2.id='my_alert2';
my_alert2.style.position = 'absolute';
my_alert2.style.left = parseInt(DIVX)+'px';
my_alert2.style.top = parseInt(DIVY)+'px';
my_alert2.style.background = 'transparent';
divline.push('
');
document.getElementById('my_alert2').innerHTML = divline.join('');
}
function myalert2(message,func){
var pleft = -6;
var ptop = 100; //desktop
var offset = jQuery('#forms_form').offset();
var DIVX=offset.left;
var DIVY=offset.top;
var divline = [];
my_alert2 = document.createElement('div');
document.body.appendChild(my_alert2);
my_alert2.id='my_alert2';
my_alert2.style.position = 'absolute';
my_alert2.style.left = parseInt(DIVX)+'px';
my_alert2.style.top = parseInt(DIVY)+'px';
my_alert2.style.background = 'transparent';
divline.push('');
document.getElementById('my_alert2').innerHTML = divline.join('');
}
function phone(){
var mp = document.myForm.forms_field_2.value;
mp = mp.replace(/\s+/g, '');
var regexObj = /^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/;
var formatted = "";
if (regexObj.test(mp)) {
formatted = mp.replace(regexObj, "$1-$2-$3");
} else {
document.myForm.forms_field_2.value='';
}
document.myForm.forms_field_2.value = formatted;
}
function func2(){
document.getElementById("forms_form").style.opacity = "1";
document.getElementById("forms_field_23").disabled = false;
}
function CFL(string) {
var snnn = string;
snnn = snnn.replace(/[0-9]/g, '');
snnn = snnn.replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi, ' ');
snnn = snnn.trim();
snnn = snnn.toLowerCase().replace( /\b./g, function(a){ return a.toUpperCase(); } );
return snnn;
}
function CFL1(string) {
var snnn = string;
//snnn = snnn.replace(/[0-9]/g, '');
//snnn = snnn.replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi, ' ');
snnn = snnn.trim();
snnn = snnn.toLowerCase().replace( /\b./g, function(a){ return a.toUpperCase(); } );
return snnn;
}
function func1(){
document.getElementById("forms_field_23").disabled = true;
document.getElementById("forms_form").style.opacity = "0.9";
fun47();
phone();
//var str_zip = document.myForm.forms_field_6.value;
//if (str_zip!="") { lookup(str_zip,1); }
//var end_zip = document.myForm.forms_field_9.value;
//if (end_zip!="") { setTimeout(function(){lookup(end_zip,2)},200); }
//setTimeout(function(){func11()},600);
func11();
}
function func11(){
document.myForm.forms_field_1.value = CFL1(document.myForm.forms_field_1.value);
var mmm = document.myForm.forms_field_3.value;
document.myForm.forms_field_6.value = "";
document.myForm.forms_field_9.value = "";
var str_city = CFL(document.myForm.forms_field_5.value);
var end_city = CFL(document.myForm.forms_field_8.value);
document.myForm.forms_field_5.value = str_city;
document.myForm.forms_field_8.value = end_city;
var landmarks = document.myForm.forms_field_4.value;
var landmarks2 = document.myForm.forms_field_7.value;
document.getElementById("forms_form").style.opacity = "0.6";
document.myForm.forms_field_1.style.background = "#ffffff";
document.myForm.forms_field_3.style.background = "#ffffff";
document.myForm.forms_field_4.style.background = "#ffffff";
document.myForm.forms_field_5.style.background = "#ffffff";
document.myForm.forms_field_7.style.background = "#ffffff";
document.myForm.forms_field_8.style.background = "#ffffff";
if (document.myForm.forms_field_1.value == "") {
document.myForm.forms_field_1.style.background = "#ffe5e5";
myalert("Please enter your Name.","func2()");
}else if (document.myForm.forms_field_2.value == "") {
myalert("Please enter a valid phone number.","func2()");
}else if ((mmm.indexOf("@") == -1)||(mmm.indexOf(".") == -1)){
document.myForm.forms_field_3.style.background = "#ffe5e5";
myalert("Please enter valid Email address!","func2()");
}else if ((str_city == "" && landmarks == "") || (str_city.indexOf(",") == -1 && landmarks == "") || (str_city == "" && landmarks != "")) {
document.myForm.forms_field_4.style.background = "#ffe5e5";
document.myForm.forms_field_5.style.background = "#ffe5e5";
myalert("Originating State and City?","func2()");
}else if ((end_city == "" && landmarks2 == "") || (end_city.indexOf(",") == -1 && landmarks2 == "") || (end_city == "" && landmarks2 != "")) {
document.myForm.forms_field_7.style.background = "#ffe5e5";
document.myForm.forms_field_8.style.background = "#ffe5e5";
myalert("Destination State and City?","func2()");
}else{
document.getElementById("forms_form").style.opacity = "0.3";
$.ajax({
type:"POST",
url: 'spelling.php',
data: ({dats: mmm}),
cache: false,
success: function(result){
if (result!="") {
if (result!=mmm) {
document.myForm.newemail.value = result;
//var rx = confirm("The Software would like to change the email address.\nNew email address: "+result);
//if (rx == true) {document.myForm.forms_field_3.value = result;}
myalert2("The Software would like to change the email address.\nNew email address: "+result,"func12a()");
}else{
func12();
}
}else{
func12();
}
},
error: function (request, status, error) {
alert(request.responseText);
}
});
}
}
function func12a(){
document.myForm.forms_field_3.value = document.myForm.newemail.value;
setTimeout(function(){func12();},300);
}
function func12(){
document.getElementById("forms_form").style.opacity = "0.1";
document.getElementById("wait2").style.display = "block";
document.myForm.action = "calculate.php";
document.myForm.method = "POST";
setTimeout(function(){document.myForm.submit();},200);
//alert("OK Submit: "+document.myForm.forms_field_3.value);
}