<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
<!-- Begin
function blockError(){return true;}
window.onerror = blockError;
//  End -->
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_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.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_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
<!-- Begin
var user;
var domain;
var suffix;
function jemail(user, domain, suffix){
document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '">' + user + '@' + domain + '.' + suffix + '</a>');
}
//  End -->
<!-- Begin - Locations
function formHandler(form){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
}
// End -->
<!-- Begin - Job Opportunities
function formHandler2(form){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
}
// End -->















<!-- Begin - aw-direct_form.htm
function checkFields() {
missinginfo = "";
if (document.AW_Direct_Application.name.value == "") {
missinginfo += "\n     -  Name";
}
if (document.AW_Direct_Application.address.value == "") {
missinginfo += "\n     -  Address";
}
if ((document.AW_Direct_Application.email.value == "") || 
(document.AW_Direct_Application.email.value.indexOf('@') == -1) || 
(document.AW_Direct_Application.email.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Email";
}
if ((document.AW_Direct_Application.email_address_reconfirm.value == "") || 
(document.AW_Direct_Application.email_address_reconfirm.value.indexOf('@') == -1) || 
(document.AW_Direct_Application.email_address_reconfirm.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Reconfirm email address";
}
if (document.AW_Direct_Application.phone_number_home.value == "") {
missinginfo += "\n     -  Home phone number";
}
if(document.AW_Direct_Application.phone_number_work.value == "") {
missinginfo += "\n     -  Work phone number";
}
if(document.AW_Direct_Application.mobile_number.value == "") {
missinginfo += "\n     -  Mobile number";
}
if(document.AW_Direct_Application.vehicle_make_and_model.value == "") {
missinginfo += "\n     -  Vehicle make and model";
}
if(document.AW_Direct_Application.registration_number.value == "") {
missinginfo += "\n     -  Registration number";
}
if(document.AW_Direct_Application.insurance_company_details.value == "") {
missinginfo += "\n     -  Insurance company details";
}
if(document.AW_Direct_Application.broker_details.value == "") {
missinginfo += "\n     -  Broker details";
}
if(document.AW_Direct_Application.insurance_policy_number.value == "") {
missinginfo += "\n     -  Insurance policy number";
}
if(document.AW_Direct_Application.insurance_claim_number.value == "") {
missinginfo += "\n     -  Insurance claim number";
}
if(document.AW_Direct_Application.description_of_damage.value == "") {
missinginfo += "\n     -  Description of damage";
}
if(document.AW_Direct_Application.other_driver_details.value == "") {
missinginfo += "\n     -  Other driver details";
}
if ( ! (document.AW_Direct_Application.other_driver_admit_liability[0].checked || document.AW_Direct_Application.other_driver_admit_liability[1].checked)) {
missinginfo += "\n     -  Other driver admit liability";
}
if (missinginfo != "") {
missinginfo ="_____________________________\n" +
"You failed to correctly fill in your:\n" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and submit again!";
alert(missinginfo);
return false;
}
else return true;
}
//  End -->










<!-- Begin - feedback_form.htm
function checkFields() {
missinginfo = "";
if(document.AW_Feedback.comments.value == "") {
missinginfo += "\n     -  Comments";
}
if ((document.AW_Feedback.email.value == "") || 
(document.AW_Feedback.email.value.indexOf('@') == -1) || 
(document.AW_Feedback.email.value.indexOf('.') == -1)) {
missinginfo += "\n     -  E-mail";
}
if ((document.AW_Feedback.email_address_reconfirm.value == "") || 
(document.AW_Feedback.email_address_reconfirm.value.indexOf('@') == -1) || 
(document.AW_Feedback.email_address_reconfirm.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Reconfirm E-mail Address";
}
if(document.AW_Feedback.registration_number.value == "") {
missinginfo += "\n     -  Registration Number";
}
if (missinginfo != "") {
missinginfo ="_____________________________\n" +
"You failed to correctly fill in your:\n" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and submit again!";
alert(missinginfo);
return false;
}
else return true;
}
//  End -->
<!-- Begin - feedback_form.htm
Begin
function checkRadios() {
 var el = document.forms[0].elements;
 for(var i = 0 ; i < el.length ; ++i) {
  if(el[i].type == "radio") {
   var radiogroup = el[el[i].name]; // get the whole set of radio buttons.
   var itemchecked = false;
   for(var j = 0 ; j < radiogroup.length ; ++j) {
    if(radiogroup[j].checked) {
	 itemchecked = true;
	 break;
	}
   }
   if(!itemchecked) { 
    alert("Please choose an answer for "+el[i].name+".");
    if(el[i].focus)
     el[i].focus();
	return false;
   }
  }
 }
 return true;
} 
//  End -->






















<!-- Begin - photo parade
NewImg = new Array (
"jpg/photo-parade/pp1.jpg",
"jpg/photo-parade/pp2.jpg",
"jpg/photo-parade/pp3.jpg",
"jpg/photo-parade/pp4.jpg",
"jpg/photo-parade/pp5.jpg",
"jpg/photo-parade/pp6.jpg",
"jpg/photo-parade/pp7.jpg",
"jpg/photo-parade/pp8.jpg",
"jpg/photo-parade/pp9.jpg",
"jpg/photo-parade/pp10.jpg",
"jpg/photo-parade/pp11.jpg",
"jpg/photo-parade/pp12.jpg",
"jpg/photo-parade/pp13.jpg",
"jpg/photo-parade/pp14.jpg",
"jpg/photo-parade/pp15.jpg",
"jpg/photo-parade/pp16.jpg"
);
var ImgNum = 0;
var ImgLength = NewImg.length - 1;

//Time delay between Slides in milliseconds
var delay = 3000;

var lock = false;
var run;
function chgImg(direction) {
if (document.images) {
ImgNum = ImgNum + direction;
if (ImgNum > ImgLength) {
ImgNum = 0;
}
if (ImgNum < 0) {
ImgNum = ImgLength;
}
document.slideshow.src = NewImg[ImgNum];
   }
}
function auto() {
if (lock == true) {
lock = false;
window.clearInterval(run);
}
else if (lock == false) {
lock = true;
run = setInterval("chgImg(1)", delay);
   }
}
//  End -->