
br='';
d=document;f=false;w=window;s=screen;
nv=navigator;a=nv.userAgent.toLowerCase()+' ';


function email(adrs){var i=adrs.toLowerCase().indexOf("@nospam-");if(i>=0){adrs=adrs.substring(0,i+1)+adrs.substring(i+8,adrs.length);};d.location="mailto:"+adrs;}

function gel(el){if(d.getElementById){return d.getElementById(el);}else if(d.all){return d.all[el];}else if(d.layers){return d.layers[el];};}


var ffc=0;

function enterfld(th){ffc=1;th.style.backgroundColor='FAFAFA';return '';}
function exitfld(th){ffc=0;th.style.backgroundColor='F5F5F5';return '';};
function overfld(th){if(ffc==0){th.style.backgroundColor='FAFAFA';};return '';}
function outfld(th){if(ffc==0){th.style.backgroundColor='F5F5F5';};return '';}
function AskReset(){if(confirm("Reset form?")){gel('EnquiryForm').reset();};return f;}

function mknm(mnm){var rmcs="?&#./\-+%:;=";var mnm2=mnm;var i=rmcs.length-1;do{rmc=rmcs.charAt(i);while (mnm2.indexOf(rmc)>=0){mnm2=mnm2.substring(0,mnm2.indexOf(rmc))+"_"+mnm2.substring(mnm2.indexOf(rmc)+1,mnm2.length);};} while (i--);return mnm2;}
function foc(nw){nw.focus();}
rss=',resizable=yes,status=yes,scrollbars=yes';
function wtl(){return ",top=10,left=10"+rss;}

var pok,nw,fw;

function fc(nw)
{
  if((br!='mz')&&(!nw.document.body))
  {
    fw=nw;setTimeout('fc(fw)',20);
    return '';
  };
  setTimeout('foc(nw)',5);
}


function n(pg){pok=0;n2(pg);}
function n2(pg){pww=parseInt(aw()*0.8);pwh=parseInt(ah()*0.7);nm=mknm(pg);pg2=pg;setTimeout('p3(pg2)',100);setTimeout('n3(pg2,nm,pww,pwh)',1);}
function n3(pg2,nm,pww,pwh){if(w.open){nw=w.open(pg2,nm,'toolbar=yes,location=yes,menubar=yes,width='+pww+',height='+pwh+wtl());if(nw&&!nw.closed&&nw.focus){pok=1;setTimeout('fc(nw)',50);};};}

function p(pg,X,Y){pok=0;pww=X;pwh=Y;nm=mknm(pg);pg2=pg;setTimeout('p3(pg2)',100);setTimeout('p2(pg2,nm,pww,pwh)',50);return f;}
function p2(pg2,nm,pww,pwh)
{
  if(w.open)
  {
  nw=w.open(pg2,nm,'toolbar=no,location=no,menubar=no,width='+pww+',height='+pwh+wtl());
  if(nw&&!nw.closed&&nw.focus)
  {
    pok=1;
    fw=nw;
    setTimeout('fc(fw)',50);
    };
  };
  return false;
}


function p3(pg){if(pok==0){location.href=pg;return f;};pok=-1;return f;}


