<!--
function win(fileName) {
     myFloater = window.open('','myWindow','scrollbars=yes,status=no,width=600,height=400')
     myFloater.location.href = fileName;
}
function displayDate(){
    var this_month = new Array(12);
    this_month[0]  = "January";
    this_month[1]  = "February";
    this_month[2]  = "March";
    this_month[3]  = "April";
    this_month[4]  = "May";
    this_month[5]  = "June";
    this_month[6]  = "July";
    this_month[7]  = "August";
    this_month[8]  = "September";
    this_month[9]  = "October";
    this_month[10] = "November";
    this_month[11] = "December";
    var today = new Date();
    var day   = today.getDate();
    var month = today.getMonth();
    var year  = today.getYear();
    if (year < 1900){
        year += 1900;
    }
    return(day+" "+this_month[month]+" " +year);
}
function NameOfDay(day) {
var DayNames = new Array();
DayNames[0] = 'Sun';
DayNames[1] = 'Mon';
DayNames[2] = 'Tue';
DayNames[3] = 'Wed';
DayNames[4] = 'Thu';
DayNames[5] = 'Fri';
DayNames[6] = 'Sat';
return DayNames[day];
}

function TotalCost() {
// Written by Ben Houghton
// benhoughton@yahoo.com

// The following variables can be changed which will affect the entire code
// There is no need to change any other part of the code relating to these values

var StampDutyrate = 0.0000;
var BabySeatCost = 20;
var BabySeatCap = 25;
var GpsCost = 5.50;
var GpsCap = 35;
// The following sets of variables apply to each group of cars
// The number in square brackets represents the group the car is from

var AutoCost = new Array();
AutoCost[1]=2.00;
AutoCost[2]=2.00;
AutoCost[3]=0.00;
AutoCost[4]=0.00;
AutoCost[5]=0.00;
AutoCost[6]=0.00;
AutoCost[7]=0.00;
AutoCost[8]=3.00;
AutoCost[9]=3.00;


var CDWCost = new Array();
CDWCost[1]=8.80;
CDWCost[2]=8.80;
CDWCost[3]=8.80;
CDWCost[4]=8.80;
CDWCost[5]=8.80;
CDWCost[6]=8.80;
CDWCost[7]=11.00;
CDWCost[8]=11.00;
CDWCost[9]=11.00;


// One day daily costs
var OneDay = new Array();
OneDay[1]=35; // budget corolla manual
OneDay[2]=38; // compact corolla/excel auto and manual
OneDay[3]=40; // intermediate sedan, family sedan
OneDay[4]=40; // intermediate wagon, family wagon, family sedan 6 seater
OneDay[5]=43; // family wagon 6 seater
OneDay[6]=55; // early tarago
OneDay[7]=68; // late tarago
OneDay[8]=57; // ute
OneDay[9]=65; // van


// One day daily costs
var OneDayPeak = new Array();
OneDayPeak[1]=35;
OneDayPeak[2]=38;
OneDayPeak[3]=40;
OneDayPeak[4]=40;
OneDayPeak[5]=43;
OneDayPeak[6]=55;
OneDayPeak[7]=68;
OneDayPeak[8]=57;
OneDayPeak[9]=65;

// Two to three day daily costs
var TwoDay = new Array();
TwoDay[1]=35; // budget corolla manual
TwoDay[2]=38; // compact corolla/excel auto and manual
TwoDay[3]=40; // intermediate sedan, family sedan
TwoDay[4]=40; // intermediate wagon, family wagon, family sedan 6 seater
TwoDay[5]=43; // family wagon 6 seater
TwoDay[6]=55; // early tarago
TwoDay[7]=68; // late tarago
TwoDay[8]=57; // ute
TwoDay[9]=65; // van

// Two to three day daily costs
var TwoDayPeak = new Array();
TwoDayPeak[1]=35;
TwoDayPeak[2]=38;
TwoDayPeak[3]=40;
TwoDayPeak[4]=40;
TwoDayPeak[5]=43;
TwoDayPeak[6]=55;
TwoDayPeak[7]=68;
TwoDayPeak[8]=57;
TwoDayPeak[9]=65;

// Four to six day daily costs
var FourDay = new Array();
FourDay[1]=30; // budget corolla manual
FourDay[2]=33; // compact corolla/excel auto and manual
FourDay[3]=35; // intermediate sedan, family sedan
FourDay[4]=35; // intermediate wagon, family wagon, family sedan 6 seater
FourDay[5]=38; // family wagon 6 seater
FourDay[6]=50; // early tarago
FourDay[7]=60; // late tarago
FourDay[8]=52; // ute
FourDay[9]=60; // van

// Four to six day daily costs
var FourDayPeak = new Array();
FourDayPeak[1]=30;
FourDayPeak[2]=33;
FourDayPeak[3]=35;
FourDayPeak[4]=38;
FourDayPeak[6]=50;
FourDayPeak[7]=60;
FourDayPeak[8]=52;
FourDayPeak[9]=60;
// Seven to nine day daily costs
var SevenDay = new Array();
SevenDay[1]=26; // budget corolla manual
SevenDay[2]=31; // compact corolla/excel auto and manual
SevenDay[3]=32; // intermediate sedan, family sedan
SevenDay[4]=32; // intermediate wagon, family wagon, family sedan 6 seater
SevenDay[5]=34; // family wagon 6 seater
SevenDay[6]=45; // early tarago
SevenDay[7]=57; // late tarago
SevenDay[8]=48; // ute
SevenDay[9]=52; // van

// Seven to nine day daily costs
var SevenDayPeak = new Array();
SevenDayPeak[1]=26;
SevenDayPeak[2]=31;
SevenDayPeak[3]=32;
SevenDayPeak[4]=32;
SevenDayPeak[5]=34;
SevenDayPeak[6]=45;
SevenDayPeak[7]=57;
SevenDayPeak[8]=48;
SevenDayPeak[9]=52;

// Ten and more days daily costs
var TenDay = new Array();
TenDay[1]=25; // budget corolla manual
TenDay[2]=26; // compact corolla/excel auto and manual
TenDay[3]=31; // intermediate sedan, family sedan
TenDay[4]=33; // intermediate wagon, family wagon, family sedan 6 seater
TenDay[5]=35; // family wagon 6 seater
TenDay[6]=50; // early tarago
TenDay[7]=64; // late tarago
TenDay[8]=34; // ute
TenDay[9]=44; // van

// Ten and more days daily costs
var TenDayPeak = new Array();
TenDayPeak[1]=25;
TenDayPeak[2]=26;
TenDayPeak[3]=31;
TenDayPeak[4]=33;
TenDayPeak[5]=35;
TenDayPeak[6]=50;
TenDayPeak[7]=64;
TenDayPeak[8]=34;
TenDayPeak[9]=44;

// no need to edit code beyond this point in this function

var TotalCost = 0;
var TotalKms = 0;
var ErrorCode = false;
var ErrorMessage;

var DailyCosts = new Array();
DailyCosts[0] = [0,0,0,0,0,0,0,0,0,0,0,0,0]
DailyCosts[1] = OneDay;
DailyCosts[2] = TwoDay;
DailyCosts[3] = TwoDay;
DailyCosts[4] = FourDay;
DailyCosts[5] = FourDay;
DailyCosts[6] = FourDay;
DailyCosts[7] = SevenDay;
DailyCosts[8] = SevenDay;
DailyCosts[9] = SevenDay;
DailyCosts[10] = TenDay;

var DailyCostsPeak = new Array();
DailyCostsPeak[0] = [0,0,0,0,0,0,0,0,0,0,0,0,0]
DailyCostsPeak[1] = OneDayPeak;
DailyCostsPeak[2] = TwoDayPeak;
DailyCostsPeak[3] = TwoDayPeak;
DailyCostsPeak[4] = FourDayPeak;
DailyCostsPeak[5] = FourDayPeak;
DailyCostsPeak[6] = FourDayPeak;
DailyCostsPeak[7] = SevenDayPeak;
DailyCostsPeak[8] = SevenDayPeak;
DailyCostsPeak[9] = SevenDayPeak;
DailyCostsPeak[10] = TenDayPeak;


var DateOfRental = new Date("" + document.form.date_of_rental.value + " " + document.form.month_of_rental.value.substring(0,3) + ", " + document.form.year_of_rental.value);
var DateOfReturn = new Date("" + document.form.date_of_return.value + " " + document.form.month_of_return.value.substring(0,3) + ", " + document.form.year_of_return.value);
var DayOfRental = new Date("" + document.form.date_of_rental.value + " " + document.form.month_of_rental.value.substring(0,3) + ", " + document.form.year_of_rental.value);
var DayOfReturn = new Date("" + document.form.date_of_return.value + " " + document.form.month_of_return.value.substring(0,3) + ", " + document.form.year_of_return.value);
var aToday = new Date();



var aDateOfRental = DateOfRental;
var numberofdays = 0;

if (DateOfReturn >= DateOfRental) {
	while((aDateOfRental.getYear() != DateOfReturn.getYear()) || (aDateOfRental.getMonth() != DateOfReturn.getMonth()) || 	(aDateOfRental.getDate() != DateOfReturn.getDate())){
		aDateOfRental.setDate(aDateOfRental.getDate()+1);
		numberofdays++;
	}
}
else {
	ErrorCode = true;
	ErrorMessage = 'Check dates';
}

var anumberofdays = 0;

if (numberofdays > 10) {

	anumberofdays = 10;
}
else {
	anumberofdays = numberofdays;
}

if (ErrorCode) {
}
else {
    document.form.quote_text.value = '';
	document.getElementById("peakperiod").style.display="none";
}

if (document.form.month_of_rental.value == 'December')
	if (document.form.date_of_rental.value >= '01')
	if (document.form.date_of_rental.value <='31')
	if ((document.form.date_of_return.value >= '31') && (document.form.month_of_return.value == 'December'))
	if (numberofdays < 91)
    if (document.form.requiredVehicle.value.substring(6,7) < 5) {
	DailyCosts = DailyCostsPeak;
	document.form.quote_text.value = '';
    document.getElementById("peakperiod").style.display="";
}

if (document.form.month_of_rental.value == 'December')
	if (document.form.date_of_rental.value >= '01')
	if (document.form.date_of_rental.value <= '31')
	if (numberofdays < 91)
    if (document.form.requiredVehicle.value.substring(6,7) > 4) {
	DailyCosts = DailyCostsPeak;
	document.form.quote_text.value = '';
    document.getElementById("peakperiod").style.display="";
}

if (document.form.month_of_rental.value == 'December')
	if (document.form.date_of_rental.value >= '01')
	if (numberofdays < 91) {
	DailyCosts = DailyCostsPeak;
	document.form.quote_text.value = '';
    document.getElementById("peakperiod").style.display="";
}

if (document.form.month_of_rental.value == 'January')
	if (document.form.date_of_rental.value >= '02')
	if (document.form.date_of_rental.value <= '31')
	if ((document.form.date_of_return.value > '31') && (document.form.month_of_return.value == 'January'))
	if (numberofdays < 60)
    if (document.form.requiredVehicle.value.substring(6,7) < 5) {
	DailyCosts = DailyCostsPeak;
	document.form.quote_text.value = '';
    document.getElementById("peakperiod").style.display="";
}

if (document.form.month_of_rental.value == 'January')
	if (document.form.date_of_rental.value >= '02')
	if (document.form.date_of_rental.value <= '31')
	if (numberofdays < 60)
    if (document.form.requiredVehicle.value.substring(6,7) > 4) {
	DailyCosts = DailyCostsPeak;
	document.form.quote_text.value = '';
    document.getElementById("peakperiod").style.display="";
}

if (document.form.month_of_rental.value == 'January')
	if (document.form.date_of_rental.value >= '02')
	if (numberofdays < 60) {
	DailyCosts = DailyCostsPeak;
	document.form.quote_text.value = '';
    document.getElementById("peakperiod").style.display="";
}

if (document.form.month_of_rental.value == 'February')
	if (document.form.date_of_rental.value >= '01')
	if (document.form.date_of_rental.value <= '29')
	if ((document.form.date_of_return.value > '29') && (document.form.month_of_return.value == 'February'))
	if (numberofdays < 29)
    if (document.form.requiredVehicle.value.substring(6,7) < 5) {
	DailyCosts = DailyCostsPeak;
	document.form.quote_text.value = '';
    document.getElementById("peakperiod").style.display="";
}

if (document.form.month_of_rental.value == 'Feruary')
	if (document.form.date_of_rental.value >= '01')
	if (document.form.date_of_rental.value <= '29')
	if (numberofdays < 29)
    if (document.form.requiredVehicle.value.substring(6,7) > 4) {
	DailyCosts = DailyCostsPeak;
	document.form.quote_text.value = '';
    document.getElementById("peakperiod").style.display="";
}

if (document.form.month_of_rental.value == 'February')
	if (document.form.date_of_rental.value >= '01')
	if (numberofdays < 29) {
	DailyCosts = DailyCostsPeak;
	document.form.quote_text.value = '';
    document.getElementById("peakperiod").style.display="";
}

if (document.form.month_of_rental.value == 'April')
	if (document.form.date_of_rental.value > '18')
	if (document.form.date_of_rental.value < '28')
	if ((document.form.date_of_return.value < '28') && (document.form.month_of_return.value == 'April'))
	if (numberofdays < 30){
	DailyCosts = DailyCostsPeak;
	document.form.quote_text.value = '';
    document.getElementById("peakperiod").style.display="";
}
var VehicleGroup = document.form.requiredVehicle.value.substring(6,7);
if (!(VehicleGroup > 0)) VehicleGroup = 0;


var TimeOfRental = new Date();
TimeOfRental.setHours(document.form.time_of_rental.value.substring(0,2));
TimeOfRental.setMinutes(document.form.time_of_rental.value.substring(3,5));
var TimeOfReturn = new Date();
TimeOfReturn.setHours(document.form.time_of_return.value.substring(0,2));
TimeOfReturn.setMinutes(document.form.time_of_return.value.substring(3,5));

var HoursLate = Math.round(((TimeOfReturn.valueOf() - TimeOfRental.valueOf())/3600000));

var DailyCost = DailyCosts[anumberofdays][VehicleGroup];

if ((TimeOfReturn > TimeOfRental) && (HoursLate*0.2*DailyCost >= DailyCost)){
	anumberofdays++;
	if (anumberofdays <= 10) DailyCost = DailyCosts[anumberofdays][VehicleGroup];

if (!(numberofdays > 0 < (HoursLate = 5.3))) HoursLate = 0;

}

TotalCost = (numberofdays*DailyCost);
TotalKms = document.form.rate.value.substring(0,3) * numberofdays;

anumberofdays = numberofdays;


if (TimeOfReturn > TimeOfRental){
	anumberofdays = numberofdays + 1;
	if ((HoursLate*0.2*DailyCost) < DailyCost){
		TotalCost = TotalCost + (DailyCost*HoursLate*0.2);
		TotalKms = TotalKms + (document.form.rate.value.substring(0,3)*HoursLate*0.2);
	}
	else{
		TotalCost = TotalCost + DailyCost;
		TotalKms = TotalKms + (document.form.rate.value.substring(0,3)*1);
	}
}


if (document.form.requiredLiabilityreduction.value == 'Yes'){
	TotalCost = TotalCost + (anumberofdays*CDWCost[VehicleGroup]);
	
}	
if (document.form.automatic.value == 'Yes'){
	TotalCost = TotalCost + (anumberofdays*AutoCost[VehicleGroup]);
}
	
var BabySeatTotalCost = anumberofdays*BabySeatCost; 
if (BabySeatTotalCost > BabySeatCap) BabySeatTotalCost = BabySeatCap;


if (document.form.baby_seat.value.substring(0,4) != 'None'){
	TotalCost = TotalCost + BabySeatTotalCost;
}

if (document.form.baby_seat.value == 'Two booster seats'){
	TotalCost = TotalCost + BabySeatTotalCost*1;
}

if (document.form.baby_seat.value == 'Two baby seats'){
	TotalCost = TotalCost + BabySeatTotalCost*1;
}

if (document.form.baby_seat.value == 'Two capsules'){
	TotalCost = TotalCost + BabySeatTotalCost*1;
}

if (document.form.baby_seat.value == 'A booster & baby seat'){
	TotalCost = TotalCost + BabySeatTotalCost*1;
}


if (document.form.baby_seat.value == 'A booster seat & capsule'){
	TotalCost = TotalCost + BabySeatTotalCost*1;
}

if (document.form.baby_seat.value == 'A baby seat & capsule'){
	TotalCost = TotalCost + BabySeatTotalCost*1;
}

var GpsTotalCost = anumberofdays*GpsCost; 
if (GpsTotalCost > GpsCap) GpsTotalCost = GpsCap;

if (document.form.gps.value.substring(0,4) != 'None'){
	TotalCost = TotalCost + GpsTotalCost;
}

if (document.form.requiredAge.value == '23-24'){
	TotalCost = TotalCost + (anumberofdays*AgeCost[VehicleGroup]);
}


if (document.form.airport.value == 'Yes'){
	TotalCost = TotalCost + (AirportCost[VehicleGroup]);
}


if (document.form.month_of_rental.value == 'December')
if (document.form.date_of_rental.value == '25'){
	ErrorCode = true;
	ErrorMessage = 'Closed 25 Dec - Christmas';
}
if (document.form.month_of_rental.value == 'December')
if (document.form.date_of_rental.value == '26'){
	ErrorCode = true;
	ErrorMessage = 'Closed 26 Dec - Boxing day';
}

if (document.form.month_of_rental.value == 'April')
if (document.form.date_of_rental.value == '22'){
	ErrorCode = true;
	ErrorMessage = 'Closed 22 April - Easter';
}

if (document.form.month_of_rental.value == 'April')
if (document.form.date_of_rental.value == '24'){
	ErrorCode = true;
	ErrorMessage = 'Closed 24 April - Easter';
	
}

if (document.form.month_of_rental.value == 'January')
if (document.form.date_of_rental.value == '01'){
	ErrorCode = true;
	ErrorMessage = 'Closed 1 Jan - New Years Day';
}

if (document.form.month_of_return.value == 'December')
if (numberofdays > 0)
if (numberofdays < 11)
if (document.form.date_of_return.value == '25'){
	ErrorCode = true;
	ErrorMessage = 'Closed 25 Dec - Christmas';
}

if (document.form.month_of_return.value == 'December')
if (numberofdays > 0)
if (numberofdays < 11)
if (document.form.date_of_return.value == '26'){
	ErrorCode = true;
	ErrorMessage = 'Closed 26 Dec - Boxing Day';
}

if (document.form.month_of_return.value == 'January')
if (document.form.date_of_return.value == '01'){
	ErrorCode = true;
	ErrorMessage = 'Closed 1 Jan';
}

if (document.form.month_of_return.value == 'April')
if (numberofdays > 0)
if (numberofdays < 11)
if (document.form.date_of_return.value == '22'){
	ErrorCode = true;
	ErrorMessage = 'Closed 22 April - Easter';
}

if (document.form.month_of_return.value == 'April')
if (numberofdays > 0)
if (numberofdays < 11)
if (document.form.date_of_return.value == '24'){
	ErrorCode = true;
	ErrorMessage = 'Closed 24 April - Easter';
	
}


TotalCost = TotalCost + ((TotalCost-(TotalCost/11))*StampDutyrate);
TotalCost = Math.round(TotalCost*100)/100;

if (!(TotalCost > 0)) TotalCost = 0;

if (TotalCost >= 10){
TotalCost = (Math.round(TotalCost*100)).toString();
TotalCost = TotalCost.substring(0,(TotalCost.length-2))+'.'+TotalCost.substring((TotalCost.length-2),TotalCost.length);
}

if (ErrorCode) {
    document.form.quote_text.value = ' ';
	document.form.total_quote.value = ErrorMessage;
	document.form.total_kilometers.value = 0;
	document.form.kilometers_text.value = ' ';
	document.getElementById("peakperiod").style.display="";
	
}
else {

	document.form.kilometers_text.value = 'kms of use';
	document.form.total_quote.value = '$'+TotalCost;
	if (TotalCost > 0) document.form.total_kilometers.value = TotalKms;
	else document.form.total_kilometers.value = 0;
}

document.form.day_of_rental.value = NameOfDay(DayOfRental.getDay());
document.form.day_of_return.value = NameOfDay(DayOfReturn.getDay());

}

                    function setColor(el, bg) {
                      if (el.style) el.style.backgroundColor = bg;
                    }

                    function checkInput(form) {
                      var bgBad = "#FF6600";
                      var bgGood = "white";
                      var valid = true;
                      if (form.hirers_surname.value == "") {
                        valid = false;
                        setColor(form.hirers_surname, bgBad);
                      } else {
                        setColor(form.hirers_surname, bgGood);
                      }
                      if (form.given_names.value == "") {
                        valid = false;
                        setColor(form.given_names, bgBad);
                      } else {
                        setColor(form.given_names, bgGood);
                      }
                      if (form.home_street_address.value == "") {
                        valid = false;
                        setColor(form.home_street_address, bgBad);
                      } else {
                        setColor(form.home_street_address, bgGood);
                      }
                      if (form.suburb.value == "") {
                        valid = false;
                        setColor(form.suburb, bgBad);
                      } else {
                        setColor(form.suburb, bgGood);
                      }
                      if (form.town_city.value == "") {
                        valid = false;
                        setColor(form.town_city, bgBad);
                      } else {
                        setColor(form.town_city, bgGood);
                      }
                      if (form.state.value == "") {
                        valid = false;
                        setColor(form.state, bgBad);
                      } else {
                        setColor(form.state, bgGood);
                      }
                      if (form.country.value == "") {
                        valid = false;
                        setColor(form.country, bgBad);
                      } else {
                        setColor(form.country, bgGood);
                      }
                      if (form.post_code.value == "") {
                        valid = false;
                        setColor(form.post_code, bgBad);
                      } else {
                        setColor(form.post_code, bgGood);
                      }
                      if (form.date_of_birth.value == "") {
                        valid = false;
                        setColor(form.date_of_birth, bgBad);
                      } else {
                        setColor(form.date_of_birth, bgGood);
                      }
                      if (form.licence_number.value == "") {
                        valid = false;
                        setColor(form.licence_number, bgBad);
                      } else {
                        setColor(form.licence_number, bgGood);
                      }
                      if (form.licence_expiry.value == "") {
                        valid = false;
                        setColor(form.licence_expiry, bgBad);
                      } else {
                        setColor(form.licence_expiry, bgGood);
                      }
                      if (form.licence_state_and_country.value == "") {
                        valid = false;
                        setColor(form.licence_state_and_country, bgBad);
                      } else {
                        setColor(form.licence_state_and_country, bgGood);
                      }
                      if (form.home_phone.value == "") {
                        valid = false;
                        setColor(form.home_phone, bgBad);
                      } else {
                        setColor(form.home_phone, bgGood);
                      }
                      if (form.mobile.value == "") {
                        valid = false;
                        setColor(form.mobile, bgBad);
                      } else {
                        setColor(form.mobile, bgGood);
                      }
                      if (form.local_accommodation.value == "") {
                        valid = false;
                        setColor(form.local_accommodation, bgBad);
                      } else {
                        setColor(form.local_accommodation, bgGood);
                      }
                      if (form.email.value == "") {
                        valid = false;
                        setColor(form.email, bgBad);
                      } else {
                        setColor(form.email, bgGood);
                      }
                      if (!valid) alert("Please fill out the highlighted (missing required) sections of the form. Submit the entry fields as N/A if information is not applicable.");
                      return valid;
                    }

					      function modifyText(id, text) {
        if(document.getElementById && text != '') {
          obj = document.getElementById(id);
          obj.childNodes[0].data = text;
        }
}

function filterVisibleURL(text) {
  return text.replace(/^\s*/, '').replace(/\s*$/, '').replace(/^https?:\/\//, '').replace(/\/.*/, '').replace(/:[0-9]+$/, '');
}

function MM_jumpmenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

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];}}
}

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_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;
}
//-->
