var fe_popups = new Array();

function fe_openNew(url,name,width,height) {
	var options = "width=" + width + ",height=" + height + "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no";

	fe_popups[name] = window.open(url, name, options);
	window.self.name = "main";
	fe_popups[name].focus();
}

function fe_openNewWS(url,name,width,height) {
	var options = "width=" + width + ",height=" + height + "toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no";

	fe_popups[name] = window.open(url, name, options);
	window.self.name = "main";
	fe_popups[name].focus();
}

function img_popup(pic){
        var temp = new Image();
        temp.src = pic;
        var head = "<html><head></head><body leftmargin='0' marginwidth='0' topmargin='0' marginheight='0'>";
        var foot = "</body></html>";
        
        var newWindow = window.open('#','headline_img','height='+(temp.height)+'px, width='+(temp.width)+'px');
        with(newWindow.document){
          open();
          write(head+'<img src="'+pic+'">'+foot);
          close();
        }
}


//-----------------------------------------
//
//-----------------------------------------
function getObj(id){

if (document.getElementById)
	if(document.getElementById(id))
	return document.getElementById(id);
	else
	return false;
 else if (document.all)
	if(document.all[id])
	return document.all[id];
	else
	return false;
 else if (document.layers)
	if(document.layers[id])
	return document.layers[id];
	else
	return false;
 else
	return false;
}
