function popVRWindow (theURL, winName, features)
{
	window.open(theURL, winName, features);
}


function MM_openBrWindow(theURL, winName, features)
{
	window.open(theURL, winName, features);
}


function atStart ()
{
	if (document.form1)
	{
		document.form1.keyword.select();
	}
}



/*
	----------
	fonctions de sous-fenetres (popups)
	----------
*/
function openWin(html, name, w, h, features)
{
	win = window.open(html, name, 'width=' + w + ',height=' + h + ',' + features);
	return win;
}


function glossary (src)
{
	fullpath = src.getAttribute('href');
	win = openWin(fullpath,
		'zoom',
		600,
		580,
    	'location=1,scrollbars=yes,status=no,resizable=yes');

	return win;
}


/*
	----------
	fonctions des pubs (ads.rom.fr)
	----------
*/

function displayAdds()
{
	var mydiv=document.getElementById("defer");
	mydiv.style.display = "block";
}

function getAdds(varzone)
{
	if (!document.phpAds_used) document.phpAds_used = ',';
	
	phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
	document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
	document.write ("http://ads.rom.fr/adjs.php?n=" + phpAds_random);
	document.write ("&amp;what=zone:"+ varzone);
	document.write ("&amp;exclude=" + document.phpAds_used);
		
	if (document.referrer)
		document.write ("&amp;referer=" + escape(document.referrer));
	
	document.write ("'><" + "/script>");
}



