
var redirectUrl = "/";

function redirectPopup() {
	var url = window.location;
	try {
		//s'il n'ya pas de fenetre parente, on ouvre une nouvelle fenetre
		if (window.parent.opener.location == "") {
			window.document.location.href = redirectUrl;
			window.moveTo(0,0);
			window.resizeTo(screen.width,screen.height-30);
			//window.open(window.location.replace(url),'pop-up','options');
		}
	}
	catch (everything) {
		window.document.location.href = redirectUrl;
		window.moveTo(0,0);
		window.resizeTo(screen.width,screen.height-30);
		//window.open(window.location.replace(url),'pop-up','options');
		//window.open('pop-up.htm','pop-up','options');
	}
}

function redirectIframe() {
	var url = window.location;
	try {
		//s'il n'ya pas de fenetre parente, on ouvre une nouvelle fenetre
		if (window.parent.opener.location == "") {
			window.document.location.href = redircetUrl;
			window.resizeTo(screen.width,screen.height-30);
			window.open('pop-up.htm','pop-up','options');
		}
	}
	catch (everything) {
		
		window.document.location.href = redirectUrl;
		window.document.getElementById("centre").location.href = url;
		window.moveTo(0,0);
		window.resizeTo(screen.width,screen.height-30);
		window.open('pop-up.htm','pop-up','options');
	}
}