function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


//DROP DOWN GENERATOR
 function setOptions(chosen) {
var selbox = document.locator.cityopt;
 
selbox.options.length = 0;
if (chosen == " ") {
  selbox.options[selbox.options.length] = new Option('City',' ');
 
}
if (chosen == "FL") {
  selbox.options[selbox.options.length] = new Option('Boynton Beach','BoyntonBeach');
  selbox.options[selbox.options.length] = new Option('Bradenton','Bradenton');
  selbox.options[selbox.options.length] = new Option('Clearwater','Clearwater');
  selbox.options[selbox.options.length] = new Option('Dade City','DadeCity');
  selbox.options[selbox.options.length] = new Option('Deerfield Beach','DeerfieldBeach');
  selbox.options[selbox.options.length] = new Option('Dunedin','Dunedin');
  selbox.options[selbox.options.length] = new Option('Ft. Lauderdale','FTL');
  selbox.options[selbox.options.length] = new Option('Hollywood','Hollywood');
  selbox.options[selbox.options.length] = new Option('Lakeland','Lakeland');
  selbox.options[selbox.options.length] = new Option('Lake Park','Lake Park');
  selbox.options[selbox.options.length] = new Option('Lake Worth','Lake Worth');
  selbox.options[selbox.options.length] = new Option('Largo','Largo');
  selbox.options[selbox.options.length] = new Option('Margate','Margate');
  selbox.options[selbox.options.length] = new Option('New Port Richey','NPR');  
  selbox.options[selbox.options.length] = new Option('Oakland Park','OaklandPark');
  selbox.options[selbox.options.length] = new Option('Pinellas Park','PinellasPark');
  selbox.options[selbox.options.length] = new Option('Pompano Beach','PompanoBeach');
  selbox.options[selbox.options.length] = new Option('Pt Charlotte','Pt Charlotte');
  selbox.options[selbox.options.length] = new Option('Sarasota','Sarasota');
  selbox.options[selbox.options.length] = new Option('St. Petersburg','STP');
  selbox.options[selbox.options.length] = new Option('Tampa','Tampa'); //web???? rje 1/13/06
  selbox.options[selbox.options.length] = new Option('Venice','Venice');
  selbox.options[selbox.options.length] = new Option('West Palm Beach','WPB');
  selbox.options[selbox.options.length] = new Option('Winter Haven','WinterHaven');

}
if (chosen == "GA") {
  selbox.options[selbox.options.length] = new Option('Atlanta','Atlanta');
  selbox.options[selbox.options.length] = new Option('College Park','CollegePark');
  selbox.options[selbox.options.length] = new Option('Decatur','Decatur');
  selbox.options[selbox.options.length] = new Option('Douglasville','Douglasville');
  selbox.options[selbox.options.length] = new Option('Riverdale','Riverdale');

}
if (chosen == "AL") {
  selbox.options[selbox.options.length] = new Option('Abbeville','Abbeville');
  selbox.options[selbox.options.length] = new Option('Anniston','Anniston');
  selbox.options[selbox.options.length] = new Option('Birmingham','Birmingham');
  selbox.options[selbox.options.length] = new Option('Enterprise','Enterprise');
  selbox.options[selbox.options.length] = new Option('Montgomery','Montgomery');
  selbox.options[selbox.options.length] = new Option('Odenville','Odenville');
  selbox.options[selbox.options.length] = new Option('Troy','Troy');
  selbox.options[selbox.options.length] = new Option('Tuscaloosa','Tuscaloosa');
}
}

//Jump Menu
function MM_jumpMenu(targ,selbox,restore) 
{ //v3.0 
eval(targ+".location='locations.htm#"+selbox.options[selbox.selectedIndex].value+"'"); 
if (restore) selbox.selectedIndex=0; 
} 


function MM_jumpMenu2(targ,selObj,restore) 
{ //v3.0 
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); 
if (restore) selObj.selectedIndex=0; 
} 

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_jumpMenuGo2(selName,targ,restore){ //v3.0
  var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu2(targ,selObj,restore);
}

<!-- JAVASCRIPT FORM DESIGNED BY ALAN BADIA, ON 02/28/03 FOR INTERNET JUNCTION CORPORATION -->

function runSubmit(the_Form) {

if (the_Form.email.value == "") {
	alert("Please enter your EMAIL ADDRESS in the \"Email Address\" field."); // VALIDATE EMAIL ADDRESS
	the_Form.email.focus();
return (false);
} 

if (the_Form.first_name.value == "") {
	alert("Please enter your FIRST NAME in the \"First Name\" field."); // VALIDATE FIRST NAME
	the_Form.first_name.focus();
	return (false);
}

if (the_Form.last_name.value == "") {
	alert((document.the_Form.first_name.value) + ", please enter your LAST NAME in the \"Last Name\" field."); // VALIDATE LAST NAME
	the_Form.last_name.focus();
	return (false);
}
     
if (the_Form.address_one.value == "") {
	alert((document.the_Form.first_name.value) + ", please enter your ADDRESS in the \"Address\" field."); // VALIDATE ADDRESS
	the_Form.address_one.focus();
	return (false);
}
   
if (the_Form.city.value == "") {
	alert((document.the_Form.first_name.value) + ", please enter your CITY in the \"City\" field."); // VALIDATE CITY
	the_Form.city.focus();
return (false);
}
   
if (the_Form.zipcode.value == "") {
	alert((document.the_Form.first_name.value) + ", please enter your ZIP CODE in the \"Zip Code\" field."); // VALIDATE ZIP CODE
	the_Form.zipcode.focus();
return (false);
}

if (the_Form.day_phone.value == "") {
	alert((document.the_Form.first_name.value) + ", the DAY PHONE is missing, or not 12 digits long.\nThe correct format is ###-###-####."); // VALIDATE PHONE NUMBER
	the_Form.day_phone.focus();
return (false);
}

if (the_Form.date_of_birth.value == "") {
	alert((document.the_Form.first_name.value) + ", please enter your DATE OF BIRTH in the \"Date of Birth\" field."); // VALIDATE ZIP CODE
	the_Form.date_of_birth.focus();
return (false);
}
   
if (the_Form.day_phone.value == "") {
	alert((document.the_Form.first_name.value) + ", the DAY PHONE is missing, or not 12 digits long.\nThe correct format is ###-###-####."); // VALIDATE PHONE NUMBER
	the_Form.day_phone.focus();
return (false);
}

if (the_Form.make_of_vehicle.value == "") {
	alert((document.the_Form.first_name.value) + ", please enter the MAKE OF VEHICLE in the \"Make of Vehicle\" field."); // VALIDATE MAKE OF VEHICLE
	the_Form.make_of_vehicle.focus();
return (false);
}

if (the_Form.model_of_vehicle.value == "") {
	alert((document.the_Form.first_name.value) + ", please enter the MODEL OF VEHICLE in the \"Model of Vehicle\" field."); // VALIDATE MODEL OF VEHICLE
	the_Form.model_of_vehicle.focus();
return (false);
}

if (the_Form.year_of_vehicle.value == "") {
	alert((document.the_Form.first_name.value) + ", please enter the YEAR OF VEHICLE in the \"Year of Vehicle\" field."); // VALIDATE YEAR OF VEHICLE
	the_Form.year_of_vehicle.focus();
return (false);
}

if (the_Form.marital_status.value == "") {
	alert((document.the_Form.first_name.value) + ", please enter your MARITAL STATUS in the \"Marital Status\" field."); // VALIDATE MARITAL STATUS
	the_Form.marital_status.focus();
return (false);
}

if (the_Form.best_time_to_call.value == "") {
	alert((document.the_Form.first_name.value) + ", please enter the BEST TIME TO CALL in the \"Best Time to Call\" field."); // VALIDATE BEST TIME TO CALL
	the_Form.best_time_to_call.focus();
return (false);

} else

	alert ("Thank You for your information, "+ (document.the_Form.first_name.value) + " " + (document.the_Form.last_name.value) +"!\n\nOne of our associates will be contacting you with the information you have requested.");
	document.the_Form.submit();
	return;
}


function printPage() {
     if (window.print) {
         if (confirm("Print Page?\n\nClick OK to print the completed form,\nthen mail or fax to the address below.\n\nSPACE-AGE AUTO SHADE (SAS)\nP.O. BOX 1048\nWINDER, GA 30680\n\nPhone: 1-800-804-1379 TOLL FREE\nFax: 770-868-4460")) {
             window.print();
         }
     }
 }

function readKey () {
var keycode;
	if (window.event) keycode = window.event.keyCode;
	else if (e) keycode = e.which;
	else
	return true;

if (keycode == "13") {
	alert("Please use the Submit Order! button to place your order.");
	return false
	}
return true
}


function changeBg(el) {
	el.style.background = event.type == "activate" ? "#E7C24B" : "transparent";
}


var dataOK=false;

function ConfirmCancel() {
  if (confirm("Are you sure you want to clear the form and start over?\nClick OK to clear all entered information.\nClick CANCEL to leave entered information intact.")) {
      document.the_Form.reset();
	  location.reload()
   }
  return true;
}

function initArray()    {
	for(i=0;i<initArray.arguments.length; i++) this[i] = initArray.arguments[i];
}

var isnMonths=new initArray("January,","February","March","April","May","June","July","August","September","October","November","December");
var isnDays= new initArray("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday");

	today=new Date();
	hrs=today.getHours();
	min=today.getMinutes();
	sec=today.getSeconds();
	clckh=""+((hrs>12)?hrs-12:hrs); 
	clckm=((min<10)?"0":"")+min;
	clcks=((sec<10)?"0":"")+sec;
	clck=(hrs>=12)?"p.m.":"a.m.";

var stnr="";
var ns="0123456789";
var a="";

function display_todays_date() {
var today = new Date();
var numerical_day=today.getDay();
var numerical_month=today.getMonth();
var date=today.getDate();
var year=today.getFullYear();

var weekday_array = new
Array('Sunday,','Monday,','Tuesday,','Wednesday,','Thursday,','Friday,','Saturday,');
var day_of_the_week = weekday_array[numerical_day];

var month_array = new
Array('January','February','March','April','May','June','July','August','September','October','November','December');
var month_name = month_array[numerical_month];

var date_string=day_of_the_week+' '+month_name+' '+date+', '+year;
document.write(date_string);
}



//-->