// ouverture d'une fenetre
function newindow(url,nom,largeur,hauteur) {
		fenetre = window.open(url, nom,
	'toolbar=no,resizable=no,scrollbars=no,width='+ largeur + ',height=' + hauteur + ',top=10,left=10');
		fenetre.focus();
}

// ouverture de la page de construction
function openconstr() {
		fenetre = window.open('http://www.beeasy.com/construction.html', 'constr',
		'toolbar=no,resizable=no,scrollbars=no,width=600,height=450,top=10,left=10');
		fenetre.focus();
}

// function pour l'acutalite en ASP ////////////////////////////////
function openactu(id) {
		fenetre = window.open('http://www.beeasy.com/actu.phtml?idactu=' + id, 'actu',
		'toolbar=no,resizable=no,scrollbars=yes,width=600,height=450,top=10,left=10');
		fenetre.focus();
}
	
	// function pour les evenements 
function openevent(id) {
		fenetre = window.open('http://www.beeasy.com/event.phtml?idactu=' + id, 'event',
		'toolbar=no,resizable=no,scrollbars=yes,width=600,height=450,top=10,left=10');
		fenetre.focus();
}	
	/////////////////////////////////////////////////////////////////////
	
function refreshpage() {
		history.go(0)
}
	
function openconstr() {
		fenetre = window.open('http://www.beeasy.com/construction.html', 'constr',
		'toolbar=no,resizable=no,scrollbars=no,width=600,height=450,top=10,left=10');
		fenetre.focus();
}

function opencontact(chemin) {
		fenetre = window.open(chemin + '/contact.phtml', 'contact',
		'toolbar=no,resizable=no,scrollbars=no,width=600,height=490,top=10,left=10');
		fenetre.focus();
}

function openpop(url) {
         window.open(url, 'pop',
        'toolbar=no,resizable=no,scrollbars=yes,width=750,height=450,top=10,left=10');
		fenetre.focus();
}

function ouvrir_lien(site, idactu) {
	//alert(site);
	var ie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ));
	var ns4 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4 ));
	
	w = 800;
	h = 600;
	
	if (ie4) {
		w = screen.width - 12;
		h = screen.height - 68;
	}
	
	if (ns4) {
		w = window.screen.availWidth - 10;
		h = window.screen.availHeight;
	}
	
	window.open(site, 'site','toolbar=no,resizable=yes,scrollbars=yes,width=' + w + ',height=700,top=0,left=0');
	
	var url = "http://www.beeasy.com/voir_commentaire.phtml?idactu=" + idactu + "&site=" + site;
	fenetre = window.open(url, 'commentaire',	'toolbar=no,resizable=no,scrollbars=yes,width=466,height=380,top=20,left=20');
	fenetre.focus();
}






