document.write('<link rel="stylesheet" type="text/css" href="/medias/design/fix_js.css" />');
if (top != self) { top.location = self.location; }
function ereg(pattern,string) {
	if(string == "") return true;
	var reg = new RegExp(pattern);
	return (reg.exec(string)!=null);
}
function write(div,html) {
	document.getElementById(div).innerHTML = html;
}
function ajaxpop_display(id,display) {
	var d = document.getElementById(id);
	d.style.display=display;
}
function ajaxpop_overflow(id,overflow) {
	var d = document.getElementById(id);
	d.style.overflow=overflow;
}
function ajaxpop_scroll(id,x,y) {
	document.frames[id].scrollTo(x,y);
}
function ajaxpop_size(id,width,height) {
	var d = document.getElementById(id);
	if (width)
		d.style.width=width;
	if (height)
		d.style.height=height;
}
function ajaxpop_margins(id,margins) {
	var d = document.getElementById(id);
	d.style.margin=margins;
}
function externalLinks() {
	if (!document.getElementsByTagName) return;
	var balises = document.getElementsByTagName("a");
	for (var i=0; i<balises.length; i++) {
		var balise = balises[i];
		var rel = balise.getAttribute("rel");
		if (rel == "blank") {
			balise.target = "_blank";
		}
	}
}
/*function smartInputs() {
	if (!document.getElementsByTagName) return;
	var balises = document.getElementsByTagName("input");
	for (var i=0; i<balises.length; i++) {
		var balise = balises[i];
		var rel = balise.getAttribute("rel");
		if (rel == "smartinput") {
			var title = balise.getAttribute("value");
			balise.onfocus = function() { if (this.value == title) this.value=''; return false; };
			balise.onblur = function() { if (this.value == '') this.value=''+title+''; return false; };
		}
	}
}
window.onload = function() {
	ExternalLinks();
};*/

window.onload = externalLinks;
