<!--
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_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_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];}
}
//-->
var theImages = new Array() // do not change this

theImages[0] = 'images/top_banner01.jpg'
theImages[1] = 'images/top_banner02.jpg'
theImages[2] = 'images/top_banner03.jpg'
theImages[3] = 'images/top_banner04.jpg'
theImages[4] = 'images/top_banner06.jpg'





// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<a href="/"><img src="http://www.leaseplan.com.au/'+theImages[whichImage]+'" alt="LeasePlan Australia" style="border:1px solid #000000"  /></a>');
}
function change(id){
     ID = document.getElementById(id);
    
     if(ID.style.display == "")
          ID.style.display = "none";
     else
          ID.style.display = "";
      }
function show(id){
     ID = document.getElementById(id);
     ID.style.display = "";

}

function hide(id){
     ID = document.getElementById(id);
     ID.style.display = "none";
}
// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<a href="/"><img src="http://www.leaseplan.com.au/'+theImages[whichImage]+'" alt="LeasePlan Australia" style="border:1px solid #000000"  /></a>');
}
function MM_showHideLayers() { //v6.0
  var i,p,v,v2,h,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v2=(v=='show')?'visible':(v=='hide')?'hidden':v; h=(v=='show')?'180px':(v=='hide')?'0px':v;}
    obj.visibility=v2; obj.height=h;}
}
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_setTextOfTextfield(objName,x,newText) { //v3.0
  var obj = MM_findObj(objName); if (obj) obj.value = newText;
}

function MM_Add_Totals(objName1,objName2,objName3,objName4,objName5,objName6,x,objTotal) { //v3.0
  var total=0;
  var obj1 = MM_findObj(objName1); if (obj1) total+=parseFloat(obj1.value);
  	if (obj1) obj1.value=Convert_To_Decimal(parseFloat(obj1.value),x);
  var obj2 = MM_findObj(objName2); if (obj2) total+=parseFloat(obj2.value);
  	if (obj2) obj2.value=Convert_To_Decimal(parseFloat(obj2.value),x);
  var obj3 = MM_findObj(objName3); if (obj3) total+=parseFloat(obj3.value);
  	if (obj3) obj3.value=Convert_To_Decimal(parseFloat(obj3.value),x);
  var obj4 = MM_findObj(objName4); if (obj4) total+=parseFloat(obj4.value);
  	if (obj4) obj4.value=Convert_To_Decimal(parseFloat(obj4.value),x);
  var obj5 = MM_findObj(objName5); if (obj5) total+=parseFloat(obj5.value);
  	if (obj5) obj5.value=Convert_To_Decimal(parseFloat(obj5.value),x);
  var obj6 = MM_findObj(objName6); if (obj6) total+=parseFloat(obj6.value);
  	if (obj6) obj6.value=Convert_To_Decimal(parseFloat(obj6.value),x);
	total=Convert_To_Decimal(Math.round(total*100)/100,x);
  var objtot = MM_findObj(objTotal); if (objtot) objtot.value =total ;
}

function Convert_To_Decimal(num,x){
  var fgh=num+'';
  var ghj=fgh.substring(fgh.length-2,fgh.length-3);
  var tyu=fgh.substring(fgh.length-1,fgh.length-2);
  var add="";
  if (x==2 && ghj!="." && tyu!=".") add+=".00";
  if (x==2 && tyu==".") add+="0";
 return num+add;
}

<!-- Begin
var expDays = 30;
var exp = new Date(); 
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

function getCookieVal (offset) {  
	var endstr = document.cookie.indexOf (";", offset);  
	if (endstr == -1)    
	endstr = document.cookie.length;  
	return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name) {  
	var arg = name + "=";  
	var alen = arg.length;  
	var clen = document.cookie.length;  
	var i = 0;  
	while (i < clen) {    
	var j = i + alen;    
	if (document.cookie.substring(i, j) == arg)      
	return getCookieVal (j);    
	i = document.cookie.indexOf(" ", i) + 1;    
	if (i == 0) break;   
	}  
	return null;
}

function SetCookie (name, value) {  
	var argv = SetCookie.arguments;  
	var argc = SetCookie.arguments.length;  
	var expires = (argc > 2) ? argv[2] : null;  
	var path = (argc > 3) ? argv[3] : null;  
	var domain = (argc > 4) ? argv[4] : null;  
	var secure = (argc > 5) ? argv[5] : false;  
	document.cookie = name + "=" + escape (value) + 
	((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
	((path == null) ? "" : ("; path=" + path)) +  
	((domain == null) ? "" : ("; domain=" + domain)) +    
	((secure == true) ? "; secure" : "");
}
function DeleteCookie (name) {  
	var exp = new Date();  
	exp.setTime (exp.getTime() - 1);  
	var cval = GetCookie (name);  
	document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}

function set_vars(){
	var Company_Name = GetCookie('Company_Name');
	
	if (Company_Name != null) {
		document.forms['FBT_Declaration'].Company_Name.value = Company_Name;
	}
	var Contact_Name = GetCookie('Contact_Name');
	
	if (Contact_Name != null) {
		document.forms['FBT_Declaration'].Contact_Name.value = Contact_Name;
	}
	var Email_Address = GetCookie('Email_Address');
	
	if (Email_Address != null) {
		document.forms['FBT_Declaration'].Email_Address.value = Email_Address;
	}
	var Vehicle_Registration = GetCookie('Vehicle_Registration');
	
	if (Vehicle_Registration != null) {
		document.forms['FBT_Declaration'].Vehicle_Registration.value = Vehicle_Registration;
	}
	var State_of_Registration = GetCookie('State_of_Registration');
	
	if (State_of_Registration != null) {
		document.forms['FBT_Declaration'].State_of_Registration.value = State_of_Registration;
	}
	var Odometer = GetCookie('Odometer');
	
	if (Odometer != null) {
		document.forms['FBT_Declaration'].Odometer.value = Odometer;
	}
}

function delete_all_cookies(){
	DeleteCookie ('Company_Name');
	DeleteCookie ('Contact_Name');
	DeleteCookie ('Email_Address');
	DeleteCookie ('Vehicle_Registration');
	DeleteCookie ('Odometer');
	DeleteCookie ('State_of_Registration');
}

