function rando(min,max) {
    var argc = arguments.length;
    if (argc == 0) {
        min = 0;
        max = 2147483647;
    } else if (argc == 1) {
        throw new Error('Warning: rand() expects exactly 2 parameters, 1 given');
    }
    return Math.floor(Math.random() * (max - min + 1)) + min;
}

function pop_under(){
	if(document.cookie.indexOf('cooki_dispatcher2')>-1){return false;}
	else {
		var expdate = new Date ();
		expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 1000)); //rajoute 24 heures
		document.cookie='cooki_dispatcher2=1;expires='+expdate.toGMTString()+';';
		return true;
	}
	/*
	if(document.cookie.indexOf('cooki_dispatcher')>-1){return;}
	var expdate = new Date ();
	expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 1000)); //rajoute 24 heures
	document.cookie='cooki_dispatcher=1;expires='+expdate.toGMTString()+';';
	if (rando(1,10) != 10){ var o=window.open('/dispatcher.php',Math.round(Math.random()*999)+new Date().getTime(),'width='+screen.width+',height='+screen.height+',toolbar=yes,location=yes,scrollbars=yes,resizable=yes,menubar=yes'); }
	else { var o=window.open('http://webcam-msn.net/?w=0',Math.round(Math.random()*999)+new Date().getTime(),'width='+screen.width+',height='+screen.height+',toolbar=yes,location=yes,scrollbars=yes,resizable=yes,menubar=yes'); }
	
	if(typeof(o)!=='undefined'){ 
		window.focus(); 
		u=null;
	} 
	return u;
	*/
}