
function log_in_forum(nomform,nomdiv) {
	this.div = document.getElementById(nomdiv);
	this.form = document.getElementById(nomform);
    this.div.innerHTML = '<iframe SRC="forum/login.php?username='+this.form.username.value+'&password='+this.form.userpass.value+'&login=true" marginwidth=0 marginheight=0 width="600px" frameborder=2 scrolling="no"></iframe>';
}

function log_out_forum(nomdiv) {
	this.div = document.getElementById(nomdiv);
	this.div.innerHTML = '<iframe SRC="forum/login.php?logout=true marginwidth=0 marginheight=0 width="600px" frameborder=2 scrolling="no"></iframe>';
}

function lire_suite(id1,id2) {
	var div1 = document.getElementById(id1);
	div1.style.display = 'none';
	var div2 = document.getElementById(id2);
	div2.style.display = 'block';
}

function effacer_suite(id1,id2) {
	var div1 = document.getElementById(id2);
	div1.style.display = 'none';
	var div2 = document.getElementById(id1);
	div2.style.display = 'block';
}