function DiagnosisPlan()
{
	window.open("http://www.ristina.jp/diagnosis/001.html","","width=460,height=340");
}

function popupImage(filepath, width, height){
	var y = 0;
	var x = 0;
	if (document.all) {
		y = (screen.height/2) - (height/2) + document.documentElement.scrollTop-100;
		x = (window.document.body.clientWidth/2) - (width/2);
	} else if (document.implementation) {
		y = (window.innerHeight/2) - (height/2) + document.documentElement.scrollTop;
		x = (window.innerWidth/2) - (width/2);
	}
	if (!popupImage.imgNode) {
		if (document.all) {
			popupImage.imgNode = document.createElement('img');
			popupImage.imgNode.attachEvent('onclick', closeImage);		
		} else if (document.implementation) {
			popupImage.imgNode = document.createElement('img');
			popupImage.imgNode.addEventListener('click' ,closeImage , true);
		} else {
			return;
		}
	}

	with(popupImage){
		imgNode.setAttribute('src', filepath );
		if (width && height) {
			imgNode.setAttribute('width', width );
			imgNode.setAttribute('height', height );
		}
		imgNode.style.position = 'absolute';
		imgNode.style.left = x + 'px';
		imgNode.style.top = y + 'px';
		imgNode.style.borderColor = '#f2f2f2';
		imgNode.style.borderWidth = '2px';
		imgNode.style.borderStyle = 'solid';
		imgNode.style.margin = '0';
		document.body.appendChild(imgNode);
	}
	
	function closeImage(){
		if (popupImage.imgNode) {
			document.body.removeChild(popupImage.imgNode);
			delete popupImage.imgNode;
		}
	}
}

function imgWin(imgurl,imgW,imgH){
	subwin=window.open("", '_blank', "width="+imgW+",height="+imgH+",scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,top=50");
	subwin.document.write("<html><body style='margin:0;padding:0;'>");
	subwin.document.write("<img src='"+imgurl+"'>");
	subwin.document.write("</body></html>");
	subwin.document.close();
}