/**/
function rem_entry(element, entry){
	if(element.value == entry)
		element.value = "";
}

/*
Ouvre un popup aux dimensions données, et la place au centre de l'écran.
*/
var popup;
function openPop(urlPopup, height, width){
	if( screen.width < width ) 
		width = screen.width;
	if( screen.height < height ) 
		height = screen.height;
	popup = window.open(urlPopup, "", "height=" + height + ",width=" + width + ",resizeable,scrollbars=auto", false );
	popup.moveTo( ( screen.width - width )/2 , ( screen.height - height) /2);
}


function readObject(obj){
	var text = "";
	for( var i in obj ){
		text += i + " = " + obj[i] + "<BR>";
	}
	return text;
}

function popObj(obj){
	openPop("", 300, 300);
	popup.document.write(readObject(obj));
}
