YAHOO.namespace ("ptools");

// Add the orgids for your site's popular databases here:
YAHOO.ptools.popularDatabases = [];

/*
   Use this function to display a temporary message in the current web page.
   It will currently display the message entered in the div
   marked by id "userTemporaryMsg" in file temporary-message.shtml
*/
function insertTemporaryMessage(){
    var tmp = document.getElementById('userTemporaryMsg');

    if (tmp == null || tmp == undefined) return;

    // If there is no real message do not try to display as it takes space
    // on the page even if the message is empty.

    if (tmp.innerHTML.search('[^ \n\t]') > 0) { 
	tmp.style.width='150px'; tmp.style.display  = 'block'; 
	return; 
    } else {
	tmp.style.width=0; tmp.style.display  = 'none'; 
	return; 
    }
}
