var DOCUMENT_PATH = window.location.protocol + "//www.allpa.nl/allpi/";

function myOptions() {
}


function google_notfound() {
// google can't find the address specified
alert("Sorry, google did not find any address.");
}

function page(s0) {
  s1=DV(s0);

  i1=s1.indexOf(" ");

  if (i1<1) {
    i1=s1.indexOf(".");
  }

  if (i1>0) {
    s2=s1.substr(0,i1).toUpperCase()
    s3=s1.substr(i1+1,s1.length-i1-1)*1;

    s4="P P. P: PAG PAG. PAG: PAGE PAGINA SEITE STE STE. STE: BLZ BLZ. BLZ:";
    i2=s4.indexOf(s2.toUpperCase());
    if((i2>-1) && (!isNaN(s3))) {
      DE(s0).value="page:"+s3;
    }
  }
}

function start() {
  start1();
  a00_f01();
}

function start1() {
  BGCOLORT="#AEBAD4";
  resize();
  DH("a2","");
  DH("a3","");
}

function getProperty(s0) {
  LEFTCOLOR="#ebf9ff";
  RIGHTCOLOR="#9ba7c1";

  s1="";

  if (s0==".srch3") {
    BGCOLORT="#AEBAD4";
    BGCOLORB="#ffffff";
    s1="OK";
  }
  if (s0==".srch2") {
    BGCOLORT="#AEBAD4";
    BGCOLORB="#ffffff";
    s1="OK";
  }

  if (s0==".srch4") {
    BGCOLORT="#8196c3";
    BGCOLORB="#f0f0f0";
    s1="OK";
  }

  if(s1=="") {
    alert(s0);
  }

}

function resize() {
  doc_height=parseInt(document.body.clientHeight);
  a4_height=doc_height-126;
  DE("a4").style.height=a4_height+"px";
}

function menu(s0) {
  s1=look(s0);

  menu_items=s1.split(",")
  m3=menu_items.length-1;
  m1=0;

  for (i=0;i<m3;i++) {
    menu_items[i]=trim(menu_items[i]);
  }

  s2="";
  while (m1<m3) {

    if (m1>0){
      s2+="<div class='sep'>&nbsp;</div>";
    }
    if (menu_items[m1+1].length==40) {
      menu_items[m1+1]=" onclick="+quote("send('"+menu_items[m1+1]+"','')");
    }
    else {
      menu_items[m1+1]=" onclick="+quote(menu_items[m1+1]);
    }

    if (menu_items[m1]=="0" ) {
      cl1="d0";
      cl2="d0s";
      s2+="<div class='"+cl1+"'>"+menu_items[m1+2]+"</div>";
    }
    else if (menu_items[m1]=="1" ) {
      cl1="d1";
      cl2="d1s";
      s2+="<div id="+s0+m1+" class='"+cl1+"' onmouseout="+quote("cls(this,'"+cl1+"')")+" onmouseover="+quote("cls(this,'"+cl2+"')")+menu_items[m1+1]+">"+menu_items[m1+2]+"</div>";
    }
    else {
      cl1="d1a";
      cl2="d1as";
      s2+="<div class='"+cl1+"' onmouseout="+quote("cls(this,'"+cl1+"')")+" onmouseover="+quote("cls(this,'"+cl2+"')")+menu_items[m1+1]+">"+menu_items[m1+2]+"</div>";
    }
    m1=m1+3;
  }

  if (m3==1) {
    s2="";
  }

  if (s0=="a3" && s2>"") {
    s2="<hr WIDTH='700px' ALIGN='LEFT' class=menu>"+s2;
  }
  DH(s0,s2);
}

