/*
      functions.js
      external funtions
   */
   // ---------------------------------------------------------



<!--
window.onload=montre;
function montre(id) {
var d = document.getElementById(id);
        for (var i = 1; i<=10; i++) {
                if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
        }
if (d) {d.style.display='block';}
}
//-->
<!--
function doit()
{
        // check inputs...
        // if inputs are bad, don't do anything
        
        // if inputs are good, then save cookie, and go to the next form
        // pack the cookie values
        varList = "";
        varList += "from=" + document.uweetwel.postcode.value + ";";

        var expiryDate = new Date();
    expiryDate.setTime(expiryDate.getTime() + (31 * 24 * 60 * 60 * 1000));
        // make the cookie
    document.cookie = "values="  + escape(varList) + 
                                                "; expires=" + expiryDate.toGMTString() +
                                                "; path=/";
        //afkorten tot eerste vier karakters
        
        y=document.uweetwel.postcode.value.substring(0,2)
                 
        document.uweetwel.postcode.value=y;
                        // go to the next page
        document.uweetwel.submit();
}

function doit2()
{
        document.uweetwel2.submit();
}

function getCookieValue(name) {
        var theCookie = document.cookie;
        if(theCookie.length == 0) { return ""; }
        var start = theCookie.indexOf("values=");
        if(start == -1) { return ""; }
        var end = theCookie.indexOf(";", start);
        if(end == -1) { end = theCookie.length; }
        var valString = unescape(theCookie.substring(start, end));
        start = valString.indexOf(name + "=");
        if(start == -1) { return ""; }
        start += (name.length + 1);
        end = valString.indexOf(";", start);
        return unescape(valString.substring(start, end));
}
//-->

<!--
function NewWin(objpath)
{

   var win1=open(objpath,"",'width=660,height=180 top=0,left=0,scrollbars=no');
   
   win1.focus();

}
//-->