<!--
function open_window(link, win_name, x, y, scrollbar) {
   if ( !scrollbar ) { scrollbar = 'yes' }
   winRef = window.open(link,win_name,'width='+x+',height='+y+',toolbar=0,directories=0,menubar=0,status=1,resizable=1,location=0,scrollbars='+scrollbar+',copyhistory=0,screenX=50,screenY=25,left=50,top=25');
   winRef.focus();
}
function open_printwin(link, win_name, x, y, scrollbar) {
   if ( !scrollbar ) { scrollbar = 'yes' }
   winRef = window.open(link,win_name,'width='+x+',height='+y+',toolbar=0,directories=0,menubar=1,status=1,resizable=1,location=0,scrollbars='+scrollbar+',copyhistory=0,screenX=50,screenY=25,left=50,top=25');
   winRef.focus();
}

function toggle_div(id, show_hide) {
	var show;
	if ( show_hide == 'show' ) {
		show = "";
	} 
	else if ( show_hide == 'hide' ) {
		show = "none";
	} 
	else {
		show = (document.getElementById(id).style.display == "" ? "none" : "");
	}
	if( document.getElementById(id) ) {
		document.getElementById(id).style.display = show;
	}
}

function toggle_div_array(id_array, show_hide) 
{
	var ids = id_array.split(',');
	var i;

	for (i=0; i < ids.length ; i++) {
		var div_id = ids[i]+'_div';
		if( document.getElementById(div_id) ) {
			toggle_div(div_id, show_hide);
	    }
	}
}


function epost(name,domain) {
   window.location ='mailto:'+ name + '@' + domain;
   return true;
}
function epost_show(name,domain) {
   document.print( name + '@' + domain );
   return true;
}
// -->
