<!--
if ( (document.domain=="www.airstop.be")
   ||(document.domain=="www.lastminutes.be")
   ) {
 location.href="http://194.78.138.182"
};
function popupcalendar(lang,base)
{
   if (base == null)
   {
     calOpener = open("/" + lang + "/" + lang + "calendr.htm","calWin", "scrollbars=no,resizable=yes,width=750,height=600");
   }
   else
   {
     calOpener = open(base + "/" + lang + "/" + lang + "calendr.htm","calWin", "scrollbars=no,resizable=yes,width=750,height=600");
   }
   if (calOpener.opener == null)
   {
      calOpener.opener = self;
   }
}
function popupphone(lang,base)
{
   if (base == null)
   {
     phoneOpener = open("/" + lang + "/" + lang + "phone.htm","phoneWin", "scrollbars=no,resizable=yes,width=350,height=240");
   }
   else
   {
     phoneOpener = open(base + "/" + lang + "/" + lang + "phone.htm","phoneWin", "scrollbars=no,resizable=yes,width=350,height=240");
   }
   if (phoneOpener.opener == null)
   {
      phoneOpener.opener = self;
   }
}

function getRandom(min,max)
{
   return (Math.round(Math.random()*(max-min)))+min;
}

function sslOK (ctl) {
//
//http://www.webreference.com/tools/browser/javascript.html
//
    // convert all characters to lowercase to simplify testing
    var agt=navigator.userAgent.toLowerCase();
    var appVer = navigator.appVersion.toLowerCase();

    // *** BROWSER VERSION ***

    var is_minor = parseFloat(appVer);
    var is_major = parseInt(is_minor);

    // Note: On IE, start of appVersion return 3 or 4
    // which supposedly is the version of Netscape it is compatible with.
    // So we look for the real version further on in the string

    var iePos  = appVer.indexOf('msie');
    if (iePos !=-1) {
       is_minor = parseFloat(appVer.substring(iePos+5,appVer.indexOf(';',iePos)))
       is_major = parseInt(is_minor);
    }

    var is_getElementById   = (document.getElementById) ? "true" : "false"; // 001121-abk
    var is_getElementsByTagName = (document.getElementsByTagName) ? "true" : "false"; // 001127-abk
    var is_documentElement = (document.documentElement) ? "true" : "false"; // 001121-abk

    var is_gecko = ((navigator.product)&&(navigator.product.toLowerCase()=="gecko"))?true:false;
    var is_gver  = 0;
    if (is_gecko) is_gver=navigator.productSub;

    var is_moz   = ((agt.indexOf('mozilla/5')!=-1) && (agt.indexOf('spoofer')==-1) &&
                    (agt.indexOf('compatible')==-1) && (agt.indexOf('opera')==-1)  &&
                    (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1)     &&
                    (is_gecko) &&
                    ((navigator.vendor=="")||(navigator.vendor=="Mozilla")));
    if (is_moz) {
       var is_moz_ver = (navigator.vendorSub)?navigator.vendorSub:0;
       if(!(is_moz_ver)) {
           is_moz_ver = agt.indexOf('rv:');
           is_moz_ver = agt.substring(is_moz_ver+3);
           is_paren   = is_moz_ver.indexOf(')');
           is_moz_ver = is_moz_ver.substring(0,is_paren);
       }
       is_minor = is_moz_ver;
       is_major = parseInt(is_moz_ver);
    }

    var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
                && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
                && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1)
                && (!(is_moz)));

    // Netscape6 is mozilla/5 + Netscape6/6.0!!!
    // Mozilla/5.0 (Windows; U; Win98; en-US; m18) Gecko/20001108 Netscape6/6.0
    // Changed this to use navigator.vendor/vendorSub - dmr 060502
    // var nav6Pos = agt.indexOf('netscape6');
    // if (nav6Pos !=-1) {
    if ((navigator.vendor)&&
        ((navigator.vendor=="Netscape6")||(navigator.vendor=="Netscape"))&&
        (is_nav)) {
       is_major = parseInt(navigator.vendorSub);
       // here we need is_minor as a valid float for testing. We'll
       // revert to the actual content before printing the result.
       is_minor = parseFloat(navigator.vendorSub);
    }

    var is_opera = (agt.indexOf("opera") != -1);
    var is_ie   = ((iePos!=-1) && (!is_opera));

    //// test whether browser versions are default 128 bit cipher strength
    /////////////////test versions supported : IE 5.5 en hoger
	 if (is_ie && is_minor >= 5.5) {
	  return true;
	 }
    /////////////////test versions supported : Netscape 6 en hoger
	 if (is_nav && is_minor >= 6) {
	  return true;
	 }
    //// in other cases return false
    return false;
}

function trySSL(p_url, p_mod)
{
 var myUrl = null;

 if (sslOK()) {
    myUrl = "https:" + "//" + location.host + "/"+ p_mod + p_url;
//    alert("S=" + myUrl);
    self.location.href = myUrl;
 }
 else
 {
   myUrl = location.protocol + "//" + location.host + "/" + p_mod + p_url;
//   alert("IS" + myUrl);
   self.location.href = myUrl;
 }
}

function winSSL(p_url, p_mod)
{
 var myUrl = null;
 var popSSL = null;
 var w=800;
 var h=550;
 var name='winSSL';
// Certificate only for Taxistop
 if (sslOK()) {
    myUrl = "https:" + "//www.taxistop.be/"+ p_mod + p_url;
//    alert("S=" + myUrl);
 }
 else
 {
   myUrl = location.protocol + "//" + location.host + "/" + p_mod + p_url;
//   alert("IS" + myUrl);
 }
  var winX = 0;
  var winY = 0;
  // only set new values if 4.0 browser
  //if (parseInt(navigator.appVersion) >= 4) {
  //  winX = (screen.availWidth - w)*.10;
  //  winY = (screen.availHeight - h)*.10;
  //}
  popSSL = window.open(myUrl, name, "menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes, width=" + w + ",height=" + h + ",left=" + winX + ",top=" + winY);
  popSSL.focus();
}
//-->
