var image_win=null;
function show_image(url,w,h) {
	w=w+16; h=h+16;
	if(!image_win)
		image_win = window.open(url, "Imageviewer", "width="+w+",height="+h+",left=100,top=200");
	else{
		image_win.document.location.href=url;
		if (document.all) { //IE
			image_win.document.body.offsetWidth=w;
			image_win.document.body.offsetHeight=h;
		}else {
			image_win.outerWidth=w;
			image_win.outerHeight=h;
		}
	}
    image_win.focus();
}

function showOrHide(id){
	var obj=document.getElementById(id);
	if(!obj) return false;
	if(obj.style.visibility=='visible'){
		obj.style.visibility='hidden';
		obj.style.display='none';
	}else {
		obj.style.visibility='visible';
		obj.style.display='inline';
	}
	return true;
}

