/* Define several functions to open controled windows for services
 * D.Deveaux <daniel.deveaux@univ-ubs.fr>
 * $Id: js_servicewindow.js,v 1.2 2007/05/16 15:16:15 deveaux Exp $
 */

function launchservice(title, url, height) {
    msgwin = window.open(url, title,
    'titlebar=yes,width=700,height='+height+',resizable=yes,scrollbars=yes');
    }

function servwindow(name, height, fixed) {
    if ( fixed == 'no' ) { fstr = ',resizable=no,scrollbars=auto'; }
    else  { fstr = ',resizable=yes,scrollbars=yes'; }
    sw = window.open('', name, 'titlebar=no,width=700,height='+height+fstr);
    }

function downloadpdf(url) {
    msgwin = window.open (url, 'msgwin','width=500,height=700');
}
    
function retToList(url) {
    if ( url == '' ) {
        window.opener.location.reload();
    } else {
	window.opener.location.replace(url);
    }
    close();
}
