document.onmousedown = function(){for (a in document.links) document.links[a].onfocus = document.links[a].blur;}

function imageShow(image,alt){
	posLeft=(screen.availWidth-200)/2;
	posTop=(screen.availHeight-100)/2;
	msg ='<meta http-equiv="imagetoolbar" content="false">';
	msg+='<script>';
	msg+='leftPressed=0;';
	msg+='function ClickCheck(){';
	msg+='if(event.button==1){leftPressed=1;oldMouseX=event.clientX;oldMouseY=event.clientY;}}';
	msg+='document.onmousedown=ClickCheck;';
	msg+='function Release(){leftPressed=0;}';
	msg+='document.onmouseup=Release;';
	msg+='function mouseMoved(){if(leftPressed){mouseX=event.clientX;mouseY=event.clientY;';
	msg+='window.scrollBy(oldMouseX-mouseX,oldMouseY-mouseY);oldMouseX=mouseX;oldMouseY=mouseY;}}';
	msg+='</script>';
	msg+='<html><head><title>'+alt+'</title>';
	msg+='<script>';
	msg+='function CenterImage(){';
	msg+='w=document.images[0].width+26;h=document.images[0].height+29;';
	msg+='scrWidth=screen.availWidth;scrHeight=screen.availHeight;';
	msg+='posLeft=(scrWidth-w)/2;posTop=(scrHeight-h)/2;';
	msg+='if(posLeft<0){posLeft=0;w=scrWidth;}';
	msg+='if(posTop<0){posTop=0;h=scrHeight;}';
	msg+='window.moveTo(posLeft,posTop);window.resizeTo(w,h);';
	msg+='document.getElementById("loading").style.visibility="hidden";';
	msg+='document.getElementById("loading").style.display="none";}';
	msg+='</script>';
	msg+='</head><body onload="CenterImage()">';
	msg+='<div style="position: absolute; left:0px; top:0px;"><img src="'+image+'" ondrag="mouseMoved()" style="cursor: pointer; cursor: hand;"></div>';
	msg+='<div id="loading" style="position: absolute; left: 0px; top: 0px;"><table bgcolor="black" width=200 height=100><td align=center style="font: 11px verdana; color: white;">Loading...</td></table></div>';
	msg+='</body></html>';
	BigImage=window.open('','',"resizable=no,scrollbars=yes,width=216,height=100,left="+posLeft+",top="+posTop);
	BigImage.document.write(msg);
	BigImage.document.close();
}

function launch(url, w, h, r, s, m, t)
{
	var hWnd = window.open(url,"pop","width="+w+",height="+h+",resizable="+r+",scrollbars="+s+",menubar="+m+",toolbar="+t+"");
}

function confirmAct(msg)
{
	var agree=confirm(msg);
	if (agree)
		return true;
	else
		return false ;
}