function load_div( el, url ) {
	var au = new Ajax.Updater( el, url, {asynchronous:true, evalScripts:true} );
	return au;
}

function show_popup( el ) {
	showopacity();
	//opera Netscape 6 Netscape 4x Mozilla 
	if (window.innerWidth || window.innerHeight){ 
		docwidth = window.innerWidth; 
	} else 
	//IE Mozilla 
	if (document.body.clientWidth || document.body.clientHeight){ 
		docwidth = document.body.clientWidth; 
	} else
		docwidth = 640;
	t = document.body.parentNode.scrollTop + 110;
	l = document.body.parentNode.scrollLeft + docwidth / 2 - 320;
	document.getElementById(el).style.top = t+'px';
	document.getElementById(el).style.left = l+'px';
	document.getElementById(el).style.display = 'block';
	showopacity();
}

function hide_popup( el ) {
	document.getElementById(el).style.display = 'none';
	hideopacity();
}

function showopacity() {
	document.getElementById('screen_opacity').style.height = document.body.parentNode.scrollHeight + 'px';
	document.getElementById('screen_opacity').style.width = document.body.parentNode.scrollWidth + 'px';
	document.getElementById('screen_opacity').style.display = 'block';
}

function hideopacity() {
	document.getElementById('screen_opacity').style.display = 'none';
}

function in_array( el, arr ) {
	for( j = 0; j < arr.length; j++ )
		if( arr[j] == el )
			return true;
	return false;
}

function please_wait() {
	d = document.getElementById('please_wait_div');
	d.style.width = "640px";
	d.style.height = "200px";
	show_popup( d.id );
	setTimeout( 'alternate_dots()', 400 );
}

function alternate_dots() {
	if( document.getElementById('blinking_dots').style.display == 'none' )
		document.getElementById('blinking_dots').style.display = '';
	else
		document.getElementById('blinking_dots').style.display = 'none';
	setTimeout( 'alternate_dots()', 400 );
}