function setfocus() { 
	document.loginForm.username.focus(); 
}

function cc() {
 /* check for a cookie */
  	if (document.cookie == "") {
    	/* if a cookie is not found - alert user -
     	change cookieexists field value to false */
    	location.replace("http://app.delivermail.be/requisites.aspx?cookies=false")
	}
	else {
   		/* this sets the value to true and nothing else will happen,
       	the user will be able to log on*/
    	document.loginForm.cookieexists.value = "true"
  	}
}

/* Set a cookie to be sure that one exists.
   Note that this is outside the function*/
document.cookie = 'exists' + escape('nothing');

window.onload = function() {
	setfocus();
	cc();
}