function popwindow(url, name){
    window.open(url,name,"menubar=1,resizable=1,width=1000, scrollbars=yes");
}


function myToggle(target, imgId){
    var elementA = document.getElementById(target);
    var imageA = document.getElementById(imgId);
    if ( elementA.style.display != 'none' ) {
	elementA.style.display = 'none';
        imageA.src="/images/plusnode.gif"; //change the icon image
    }
    else {
	elementA.style.display = '';
        imageA.src="/images/minusnode.gif";
    }
}

function myShow(target, imgId){
    var el = document.getElementById(target);
    var img = document.getElementById(imgId);
    el.style.display = '';
    im.src="/images/minusnode.gif";
}
function myHide(target, imgId){
    var el = document.getElementById(target);
    var img = document.getElementById(imgId);
    el.style.display = 'none';
    im.src="/images/plusnode.gif";
}
function updateContent() { // update recent related publication content
    var url = '/recentpub/1/2/'; //single quote in javascript!!
    var myAjax = new Ajax.PeriodicalUpdater('random_pub',url,{method:'get', frequency:15});
}