<!--

	// DOM in an ugly world
	//
	function obj(name) {
		if(document.all) 	return eval("document.all."+name);
		else 				return document.getElementById(name);
	}
	


	q=0;
	function popup(uri,name,w,h,scroll,modus) {
		var left, top;
		left = (screen.width/2) - (w/2);
		top = (screen.height/2) - (h/2);
		
		if (modus == 'project') {
			w = screen.width;
		}
		
		if(q==0) { 
			win = window.open(uri,name,'width=' + w + ',height=' + h + ',left=' + left + ',top=' + top + ',resizable=1,toolbar=0,scrollbars=' + scroll +',menubar=0,directory=0,status=0');
			q=1;
		}
		else {
			if(win.closed) {
				win = window.open(uri,name,'width=' + w + ',height=' + h + ',left=' + left + ',top=' + top + ',resizable=1,toolbar=0,scrollbars=' + scroll +',menubar=0,directory=0,status=0');
			}
			else {
				win.close();
				win = window.open(uri,name,'width=' + w + ',height=' + h + ',left=' + left + ',top=' + top + ',resizable=1,toolbar=0,scrollbars=' + scroll +',menubar=0,directory=0,status=0');
			}
		}			
	}
	
	
	
	function set_mailto( id , who , where , subject , body ) {
		where = where.replace(/\*/g, ".");
		obj(id).href="mailto:"+who+"@"+where;
		if( obj(id).innerHTML == "mail") {
			obj(id).innerHTML=who+"@"+where;
		}
	}
	
//-->
