function openWin( windowURL, windowName, windowFeatures ) { 
	return window.open( windowURL, windowName, windowFeatures ) ; 
}

function fitPic() {
	if (window.innerWidth){
		iWidth = window.innerWidth-15;
		iHeight = window.innerHeight-15;
	}else{
		iWidth = document.body.clientWidth;
		iHeight =document.body.clientHeight;
	}
	//alert(iWidth + "x" + iHeight)
	iWidth = document.images[0].width - iWidth;
	iHeight = document.images[0].height - iHeight;
	window.resizeBy(iWidth, iHeight);
}

function Muuta_kuva(){
	//jos kyseessä explorer
	if (selain_explorer){
		window.resizeTo(100,100);
		width=100-(document.body.clientWidth-document.images[0].width)+20;
		height=100-(document.body.clientHeight-document.images[0].height)+10;
		window.resizeTo(width,height);
	}
	//jos kyseessä netscape
	if (selain_netscape){
		window.innerWidth = document.images["kuva"].width+20;
		window.innerHeight = document.images["kuva"].height+10;
	}
}

function Popup_otsikko(){
	document.title = "Isuzu - sulje ikkuna klikkaamalla kuvaa.";
}