
 var bikky = document.cookie;
 var today = new Date();
 var expiry = new Date(today.getTime() + 28 * 24 * 60 * 60 * 1);

function schrijven(a){
  setCookie(a.name,a.value);
//alert(a.name)
//alert(a.value)

}

function pikop(){
var cl=document.forms[0];
var aantal= 10
//document.forms[0].length-3;

for(i=1;i<aantal;i++){cl.elements[i].value=getCookie(cl.elements[i].name);}


var To=getCookie("txtTo")

}

 function setCookie(name, value) { // use: setCookie("name", value);
    if (value != null && value != "")
      document.cookie=name + "=" + unescape(value) + "; expires=" + expiry.toGMTString();
    bikky = document.cookie; // update bikky
  }

function getCookie(name) {
  var bikky = document.cookie;
 // var expiry = new Date(today.getTime() -1);
  // use: getCookie("name");
    var index = bikky.indexOf(name + "=");
    if (index == -1) return " ";
    index = bikky.indexOf("=", index) + 1;
    var endstr = bikky.indexOf(";", index);
    if (endstr == -1) endstr = bikky.length;
    return unescape(bikky.substring(index, endstr));
  }
	<!-- begin hiding
	window.focus()
	// done hiding -->


