function validate_finance ( )
{
    valid = true;
 
    if (document.finance_form.salutation.value == "0" )
    {
        alert ( "Please provide your salutation." );
        valid = false;
	document.finance_form.salutation.focus();
    }
    else if (document.finance_form.marital.value == "0" )
    {
        alert ( "Please provide your current marital status." );
        valid = false;
	document.finance_form.marital.focus();
    }
    else if (document.finance_form.fname.value == "" )
    {
        alert ( "Please provide your first name." );
        valid = false;
	document.finance_form.fname.focus();
    }
    else if (document.finance_form.lname.value == "" )
    {
        alert ( "Please provide your last name." );
        valid = false;
	document.finance_form.lname.focus();
    }
    else if (document.finance_form.birthdate.value == "" )
    {
        alert ( "Please provide your date of birth." );
        valid = false;
	document.finance_form.birthdate.focus();
    }
    else if (document.finance_form.addStreet.value == "" )
    {
        alert ( "Please provide your current address." );
        valid = false;
	document.finance_form.addStreet.focus();
    }
    else if (document.finance_form.addStType.value == "0" )
    {
        alert ( "Please provide your street type." );
        valid = false;
	document.finance_form.addStType.focus();
    }
    else if (document.finance_form.addCity.value == "" )
    {
        alert ( "Please provide your current city." );
        valid = false;
	document.finance_form.addCity.focus();
    }
    else if (document.finance_form.prov.value == "0" )
    {
        alert ( "Please provide your current province." );
        valid = false;
	document.finance_form.prov.focus();
    }
    else if (document.finance_form.postal.value == "" )
    {
        alert ( "Please provide your current postal code." );
        valid = false;
	document.finance_form.postal.focus();
    }
    else if (document.finance_form.phone.value == "" )
    {
        alert ( "Please provide your current phone number." );
        valid = false;
	document.finance_form.phone.focus();
    }
    else if (document.finance_form.email.value == "" )
    {
        alert ( "Please provide your current email address. If you do not have one, please enter N/A" );
        valid = false;
	document.finance_form.email.focus();
    }

    return valid;
}

function validate_test_drive ( )
{
    valid = true;

    if (document.test_drive_form.fname.value == "" )
    {
        alert ( "Please provide your first name." );
        valid = false;
	document.test_drive_form.fname.focus();
    }
    else if (document.test_drive_form.lname.value == "" )
    {
        alert ( "Please provide your last name." );
        valid = false;
	document.test_drive_form.lname.focus();
    }
    else if (document.test_drive_form.phone.value == "" )
    {
        alert ( "Please provide your current phone number." );
        valid = false;
	document.test_drive_form.phone.focus();
    }
    else if (document.test_drive_form.email.value == "" )
    {
        alert ( "Please provide your current email address. If you do not have one, please enter N/A" );
        valid = false;
	document.test_drive_form.email.focus();
    }

    return valid;
}

// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully

// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000

// Duration of crossfade (seconds)
var crossFadeDuration = 3

// Specify the image files
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = './media/main/pic0.jpg'
Pic[1] = './media/main/pic1.jpg'
Pic[2] = './media/main/pic2.jpg'
Pic[3] = './media/main/pic3.jpg'


// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()      
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}