self.window.focus();

window.onerror = null ;

function FERME(){
     if(typeof top.CtrlWindow == "undefined"){
       setTimeout("FERME()",30);
       return ;
     }
     if(!top.CtrlWindow.closed){
       top.CtrlWindow.close();
       clearTimeout(temporaire);
     }else{
       setTimeout("FERME()",10);
     }
}

temporaire = setTimeout("FERME()",10);
function placeAvant(){
	self.window.focus();
}
top.window.onload = placeAvant;