","http:","https:","ftp:","prepare(","execute(","odbc_exec(","mssql_query(","mysqli","www","html");
var extra_fields = new Array("city20","city27","city30","city37","state20","state27","state30","state37","day1","month1","year1","hour","ampm","zip20","zip27","zip30","zip37","city8","state8","zip8","city56","city60","city64","state56","state60","state64","zip56","zip60","zip64","madres8","madres20","madres27","madres30","madres37","madres56","madres60","madres64");
for(var xy=1; xy<67; xy++){
var argy = "fd"+xy;
if (typeof eval("document.myForm.addsub"+xy) !== 'undefined') {
var check_value = eval("document.myForm.addsub"+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.addsub"+xy+'.value="";')
}
}
}
}
for(var xy=0; xy -1)){
//alert(check_value);
eval("document.myForm."+extra_fields[xy]+'.value="";')
}
}
}
}
}
function myFunctionx(item){
var sometext = CFL(document.getElementById("addsub"+item+"first").value+" "+document.getElementById("addsub"+item+"last").value);
document.getElementById("addsub"+item).value = sometext.trim();
//document.myForm.addsub1.value = document.myForm.addsub1first.value+" "+document.myForm.addsub1last.value;
//document.myForm.addsub1.value = CFL(document.myForm.addsub1.value);
}
function fun4() {
var numberss = [1,7,38,45,55,59,63];
numberss.forEach(myFunctionx);
var xreq = document.getElementsByClassName("notreqvr");
for (var i = 0; i < xreq.length; i++) {
xreq[i].style.display = "none";
xreq[i].style.background = "transparent";
}
for(var xy=1; xy<67; xy++){
var argy = "fd"+xy;
document.getElementById(argy).style.display = "none";
}
if (document.myForm.month1.value!='' && document.myForm.day1.value!='' && document.myForm.year1.value!='') {
document.myForm.addsub16.value = document.myForm.month1.value+"/"+document.myForm.day1.value+"/"+document.myForm.year1.value+" @ "+document.myForm.hour.value+document.myForm.ampm.value;
}else if (document.getElementById('nodate16').checked) {
document.myForm.addsub16.value="Unknown";
}else{
document.myForm.addsub16.value = "";
}
var notreq = new Array(7,8,9,14,19,20,21,22,23,24,25,26,27,29,30,31,32,33,34,35,36,37,41,42,43,46,47,48,51,55,56,57,59,60,61,63,64,65,66);
var countf = "67";
fun8();
fun47();
fun7(); fun77();
for(var x=1; x<6; x++){
var newval = eval("document.myForm.addsub"+x+".value");
var arg = "fd"+x;
document.getElementById(arg).style.display = "none";
if (notreq.indexOf(x) > -1) {
//alert(x);
}else {
if( newval == ""){
document.getElementById(arg).style.display = "block";
//var xxx = 220+(x*25);
window.scrollTo(0,270);
myalert("Required Fields are Missing #"+x,400);
return false;
}else{
document.getElementById(arg).style.display = "none";
}
}
}
if (document.myForm.addsub6.value=="Yes" && document.myForm.addsub7.value=="") {
document.getElementById("fd7").style.display = "block";
window.scrollTo(0,270);
myalert("This field is required: Additional rider information",400);
return false;
}else if (document.myForm.addsub6.value=="Yes" && document.myForm.addsub8.value=="") {
document.getElementById("fd8").style.display = "block";
window.scrollTo(0,270);
myalert("This field is required: Additional rider information",400);
return false;
}else if (document.myForm.addsub6.value=="Yes" && document.myForm.addsub9.value=="") {
document.getElementById("fd9").style.display = "block";
window.scrollTo(0,270);
myalert("This field is required: Additional rider information",400);
return false
}
for(var x=6; x<20; x++){
var newval = eval("document.myForm.addsub"+x+".value");
var arg = "fd"+x;
document.getElementById(arg).style.display = "none";
if (notreq.indexOf(x) > -1) {
//alert(x);
}else {
if( newval == ""){
document.getElementById(arg).style.display = "block";
//var xxx = 220+(x*25);
window.scrollTo(0,270);
myalert("Required Fields are Missing #"+x,400);
return false;
}else{
document.getElementById(arg).style.display = "none";
}
}
}
if (document.myForm.addsub13.value=="Yes" && document.myForm.addsub14.value=="") {
document.getElementById("fd14").style.display = "block";
window.scrollTo(0,270);
myalert("This field is required: Special Equipment Description",400);
return false;
}
if (document.myForm.addsub18.value=='Medical Facility' && (document.myForm.madres20.value!='' && document.myForm.city20.value!='' && document.myForm.state20.value!='')){
document.myForm.addsub20.value = document.myForm.madres20.value+", "+CFL(document.myForm.city20.value)+", "+document.myForm.state20.value+" "+document.myForm.zip20.value;
document.getElementById("fd20").style.display = "none";
}else if (document.myForm.addsub18.value=='Medical Facility' && (document.myForm.madres20.value=='' || document.myForm.city20.value=='' || document.myForm.state20.value=='')){
document.myForm.addsub20.value="";
window.scrollTo(0,270);
document.getElementById("fd20").style.display = "block";
myalert("Required field: Departure Facility Address!",400);
return false;
}else if (document.myForm.addsub18.value=='Private Residence' && (document.myForm.madres27.value!='' && document.myForm.city27.value!='' && document.myForm.state27.value!='')){
document.myForm.addsub27.value = document.myForm.madres27.value+", "+CFL(document.myForm.city27.value)+", "+document.myForm.state27.value+" "+document.myForm.zip27.value;
document.getElementById("fd27").style.display = "none";
}else if (document.myForm.addsub18.value=='Private Residence' && (document.myForm.madres27.value=='' || document.myForm.city27.value=='' || document.myForm.state27.value=='')){
document.myForm.addsub27.value="";
window.scrollTo(0,270);
document.getElementById("fd27").style.display = "block";
myalert("Required field: Departure Address!",400);
return false;
}
if (document.myForm.addsub18.value=="Medical Facility" && document.myForm.addsub19.value=="") {
document.getElementById("fd19").style.display = "block";
window.scrollTo(0,270);
myalert("This field is required: Departure Facility information",400);
return false;
}else if (document.myForm.addsub18.value=="Medical Facility" && document.myForm.addsub20.value=="") {
document.getElementById("fd20").style.display = "block";
window.scrollTo(0,270);
myalert("This field is required: Departure Facility information",400);
return false;
}else if (document.myForm.addsub18.value=="Private Residence" && document.myForm.addsub27.value=="") {
document.getElementById("fd27").style.display = "block";
window.scrollTo(0,270);
myalert("This field is required: Departure Address",400);
return false;
}
for(var x=20; x<40; x++){
var newval = eval("document.myForm.addsub"+x+".value");
var arg = "fd"+x;
document.getElementById(arg).style.display = "none";
if (notreq.indexOf(x) > -1) {
//alert(x);
}else {
if( newval == ""){
document.getElementById(arg).style.display = "block";
//var xxx = 220+(x*25);
window.scrollTo(0,270);
myalert("Required Fields are Missing #"+x,400);
return false;
}else{
document.getElementById(arg).style.display = "none";
}
}
}
if (document.myForm.addsub28.value=='Medical Facility' && (document.myForm.madres30.value!='' && document.myForm.city30.value!='' && document.myForm.state30.value!='')){
document.myForm.addsub30.value = document.myForm.madres30.value+", "+CFL(document.myForm.city30.value)+", "+document.myForm.state30.value+" "+document.myForm.zip30.value;
document.getElementById("fd30").style.display = "none";
}else if (document.myForm.addsub28.value=='Medical Facility' && (document.myForm.madres30.value=='' || document.myForm.city30.value=='' || document.myForm.state30.value=='')){
document.myForm.addsub30.value="";
window.scrollTo(0,270);
document.getElementById("fd30").style.display = "block";
myalert("Required field: Destination Facility Address!",400);
return false;
}else if (document.myForm.addsub28.value=='Private Residence' &&(document.myForm.madres37.value!=''&&document.myForm.city37.value!=''&&document.myForm.state37.value!='')){
document.myForm.addsub37.value = document.myForm.madres37.value+", "+CFL(document.myForm.city37.value)+", "+document.myForm.state37.value+" "+document.myForm.zip37.value;
document.getElementById("fd37").style.display = "none";
}else if (document.myForm.addsub28.value=='Private Residence' && (document.myForm.madres37.value=='' || document.myForm.city37.value=='' || document.myForm.state37.value=='')){
document.myForm.addsub37.value="";
window.scrollTo(0,270);
document.getElementById("fd37").style.display = "block";
myalert("Required field: Destination Address!",400);
return false;
}
if (document.myForm.addsub28.value=="Medical Facility" && document.myForm.addsub29.value==""){
document.getElementById("fd29").style.display = "block";
window.scrollTo(0,270);
myalert("This field is required: Destination Facility information",400);
return false;
}else if (document.myForm.addsub28.value=="Medical Facility" && document.myForm.addsub30.value==""){
document.getElementById("fd30").style.display = "block";
window.scrollTo(0,270);
myalert("This field is required: Destination Facility information",400);
return false;
}else if (document.myForm.addsub28.value=="Private Residence" && document.myForm.addsub37.value=="") {
document.getElementById("fd37").style.display = "block";
window.scrollTo(0,270);
myalert("This field is required: Destination Address",400);
return false;
}
if (document.myForm.addsub40.value=="Cellular" && document.myForm.addsub41.value=="") {
document.getElementById("fd41").style.display = "block";
window.scrollTo(0,270);
myalert("This field is required: Does your cell Phone Receive Text Messages",400);
return false;
}
for(var x=40; x<58; x++){
var newval = eval("document.myForm.addsub"+x+".value");
var arg = "fd"+x;
document.getElementById(arg).style.display = "none";
if (notreq.indexOf(x) > -1) {
//alert(x);
}else {
if( newval == ""){
document.getElementById(arg).style.display = "block";
//var xxx = 220+(x*25);
window.scrollTo(0,270);
myalert("Required Fields are Missing #"+x,400);
return false;
}else{
document.getElementById(arg).style.display = "none";
}
}
}
if (document.myForm.addsub50.value=="Yes" && document.myForm.addsub51.value=="") {
document.getElementById("fd51").style.display = "block";
window.scrollTo(0,270);
myalert("This field is required: Please provide details about special dietary needs or food preferences?",400);
return false;
}
if (document.myForm.addsub54.value=="Yes" && document.myForm.addsub55.value=="") {
document.getElementById("fd55").style.display = "block";
window.scrollTo(0,270);
myalert("This field is required: Guardian's or Power of Attorney information",400);
return false;
}else if (document.myForm.addsub54.value=="Yes" && document.myForm.addsub56.value=="") {
document.getElementById("fd56").style.display = "block";
window.scrollTo(0,270);
myalert("This field is required: Guardian's or Power of Attorney information",400);
return false;
}else if (document.myForm.addsub54.value=="Yes" && document.myForm.addsub57.value=="") {
document.getElementById("fd57").style.display = "block";
window.scrollTo(0,270);
myalert("This field is required: Guardian's or Power of Attorney information",400);
return false;
}
for(var x=58; x -1) {
//alert(x);
}else {
if( newval == ""){
document.getElementById(arg).style.display = "block";
//var xxx = 220+(x*25);
window.scrollTo(0,270);
myalert("Required Fields are Missing #"+x,400);
return false;
}else{
document.getElementById(arg).style.display = "none";
}
}
}
if (document.myForm.addsub58.value=="Yes" && document.myForm.addsub59.value=="" ) {
document.getElementById("fd59").style.display = "block";
window.scrollTo(0,270);
myalert("This field is required: Financial Power of Attorney information",400);
return false;
}else if (document.myForm.addsub58.value=="Yes" && document.myForm.addsub60.value=="") {
document.getElementById("fd60").style.display = "block";
window.scrollTo(0,270);
myalert("This field is required: Financial Power of Attorney information",400);
return false;
}else if (document.myForm.addsub58.value=="Yes" && document.myForm.addsub61.value=="") {
document.getElementById("fd61").style.display = "block";
window.scrollTo(0,270);
myalert("This field is required: Financial Power of Attorney information",400);
return false;
}
if (document.myForm.addsub62.value=="No, the Credit Card or Check being used to pay for this trip is NOT in the Passengers name" && document.myForm.addsub63.value=="") {
document.getElementById("fd63").style.display = "block";
window.scrollTo(0,270);
myalert("This field is required: Person's (Payor) information",400);
return false;
}else if (document.myForm.addsub62.value=="No, the Credit Card or Check being used to pay for this trip is NOT in the Passengers name" && document.myForm.addsub64.value=="") {
document.getElementById("fd64").style.display = "block";
window.scrollTo(0,270);
myalert("This field is required: Person's (Payor) information",400);
return false;
}else if (document.myForm.addsub62.value=="No, the Credit Card or Check being used to pay for this trip is NOT in the Passengers name" && document.myForm.addsub65.value=="") {
document.getElementById("fd65").style.display = "block";
window.scrollTo(0,270);
myalert("This field is required: Person's (Payor) information",400);
return false;
}
//alert(document.myForm.mileages.value+" - "+document.myForm.mileages1.value+" - "+document.myForm.mileages2.value+" - "+document.myForm.mileages3.value);
document.myForm.submit();
return true;
}
function shows(ar1,ar2,ar3) {
var numberss = [1,7,38,45,55,59,63];
numberss.forEach(myFunctionx);
var val = eval("document.myForm.addsub"+(ar1-1)+".value");
if (val=="Yes") {
var arg1 = "cls"+ar1;
document.getElementById(arg1).style.display = "block";
var arg2 = "cls"+ar2;
document.getElementById(arg2).style.display = "block";
var arg3 = "cls"+ar3;
document.getElementById(arg3).style.display = "block";
}else{
var arg1 = "cls"+ar1;
document.getElementById(arg1).style.display = "none";
var arg2 = "cls"+ar2;
document.getElementById(arg2).style.display = "none";
var arg3 = "cls"+ar3;
document.getElementById(arg3).style.display = "none";
}
if (document.myForm.addsub6.value=='No' || document.myForm.addsub6.value==''){
document.myForm.addsub7.value="";
document.myForm.addsub8.value="";
document.myForm.addsub9.value="";
document.myForm.madres8.value='';
document.myForm.city8.value='';
document.myForm.state8.value='';
document.myForm.zip8.value='';
}
fun8();
fun47();
fun7(); fun77();
}
function shows2(ar1,ar2) {
var val = eval("document.myForm.addsub"+(ar1-1)+".value");
if (val=="Medical Facility") {
for(var y=ar1; y