function chClass(obj,  cn)
{
	obj.className=cn;
}

function chSrc(obj, sr)
{
	obj.src=sr;
}

function jtHref(addr)
{
	document.location.href=addr;
}

function openWindow(imgsrc)
{
	if(document.getElementById('imgLarge')==null)
	{
		im=new Image();
		im.src=imgsrc;
		newDiv=document.createElement("DIV");
		newDiv.id="imgLarge";
		newDiv.style.left="10%";
		newDiv.style.top="10%";
		wh=(window.innerHeight) ? window.innerHeight : document.documentElement.clientHeight;
		newDiv.style.height=0.8*wh+"px";
		newDiv.style.width="80%";
		newDiv.style.overflow="auto";
		if(navigator.userAgent.indexOf("MSIE 6")!=-1)
		{
			newDiv.style.position="absolute";
			newDiv.style.top=document.documentElement.scrollTop+0.1*wh+"px";
			window.onscroll=function()
			{
				document.getElementById('imgLarge').style.top=document.documentElement.scrollTop+0.1*wh+"px"
			};
		}
		else{newDiv.style.position="fixed";};
		newDiv.style.border="1px solid #000000";
		newDiv.style.zIndex="100";

		newDiv.onclick=function(){this.parentNode.removeChild(this)};
		document.body.appendChild(newDiv);
		newDiv.innerHTML="<h1>LOADING...</h1>";
		window.setTimeout('im=new Image();im.src=\''+imgsrc+'\';newDiv.innerHTML=\'<img src="'+im.src+'" alt="Click to close" title="Click to close" />\'', 100);
	}
}