function formulaire(form) {
  var URL = form.site.options[form.site.selectedIndex].value;
  if (URL != "") {
    location.href = URL;
  }
}

function projet(url) {
  win_atopia = window.open(url, 'atopia', 'scrollbars=no,resizable=no,status=no,width=608,height=400');
  win_atopia.focus();
}

function fixExternalLinks() {
	$$('a').each(function(e) {
		if((e.href.indexOf(window.location.hostname) == -1) && (!e.href.startsWith('mailto:')) && (!e.href.startsWith('#'))) {
			e.target = '_blank';
		}
	});
}

function initAtopia() {
	fixExternalLinks();
}

Event.observe(window, 'load', initAtopia, false);

