function NewWindow(mypage, myname, w, h, props) {

	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;

	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+','+props

	win = window.open(mypage, myname, winprops)
	
	if (parseInt(navigator.appVersion) >= 4) { 
		win.window.focus(); 
	}
	
}

function refresh_opener(redirect_page) {
	self.location = redirect_page;
	return false;
}


function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		accueil_over = newImage("images/accueil-over.jpg");
		produits_over = newImage("images/produits-over.jpg");
		profil_over = newImage("images/profil-over.jpg");
		contact_over = newImage("images/contact-over.jpg");
		preloadFlag = true;
	}
}

function backup() {
	window.open("backup.php", "Backupenligne", "height=900, width=1000, scrollbars=yes");
}
function acomba() {
	window.open("acomba.php", "Backupenligne", "height=900, width=1000, scrollbars=yes");
}
function accord() {
	window.open("accord.php", "Backupenligne", "height=900, width=1000, scrollbars=yes");
}


