	
function getElement(e,f){
    if(document.layers){
        f=(f)?f:self;
        if(f.document.layers[e]) {
            return f.document.layers[e];
        }
        for(W=0;i<f.document.layers.length;W++) {
            return(getElement(e,fdocument.layers[W]));
        }
    }
    if(document.all) {
        return document.all[e];
    }
    return document.getElementById(e);
}

function popUp(url,theName,theWidth,theHeight){
    newWin=window.open('',theName,'toolbar=no,scrollbars=yes,width=' + theWidth + ',height=' + theHeight + ',resizable=yes');
	newWin.location = url;
    return;
}

function showloadingbar() {
	if (!document.images)
	return
	document.images.loadingbar.src = "img/loadingbar.gif";
}
   
function show_layer(layer) {
   	getElement(layer).style.display = 'block';
}
    
function hide_layer(layer) {
   	getElement(layer).style.display = 'none';
}
