
function showHide(id) {

	var moreID = 		document.getElementById(id);

	// Check to see if we should:
	// show or hide
	if (moreID.style.display == "block") {
		moreID.style.display = "none";
	} else {
		moreID.style.display = "block";
	}

}

function popitup(url)
{
	newwindow=window.open(url,'name','height=320,width=320,top=200,left=400');
	if (window.focus) {newwindow.focus()}
	return false;
}

function popitup2(url)
{
	newwindow=window.open(url,'name','height=400,width=450,top=200,left=400');
	if (window.focus) {newwindow.focus()}
	return false;
}


function go()
{
  
  box = document.koriinlisays.navi;
	destination = box.value;
	
	if (destination) location.href = destination;
}

function go2()
{
  
  box = document.katsomo.navi;
	destination = box.value;
	
	if (destination) location.href = destination;
}

function resizewindow(imagename){
  var image = new Image;
  image.src = imagename;

  if (window.innerWidth){
      iWidth = window.innerWidth;
      iHeight = window.innerHeight;
  }else{
      iWidth = document.documentElement.clientWidth;
      iHeight =document.documentElement.clientHeight;
  }

  
  iWidth = image.width - iWidth;
  iHeight = image.height - iHeight;
  iWidth +=50;
  iHeight +=50;
  
  window.resizeBy(iWidth, iHeight);       

} 
   


                
