function openWindow (url, id, w, h, features, centering) { var s = (w ? ("width=" + w) : "") + (h ? (",height=" + h) : ""); var ss = new Array ("menubar", "toolbar", "location", "scrollbars", "status", "resizable"); if (features) for (i in ss) s += "," + ss [i] + "=" + features.charAt (i); if (centering) { var x = (screen.width / 2) - (w / 2 + 10); var y = (screen.height / 2) - (h / 2 + 10); s += ",left=" + x + ",top=" + y + ",screenX=" + x + ",screenY=" + y; } var o = window.open (url, id, s); o.focus (); return o; }
function closeWindow () { var a = arguments; var r = true; if (a.length) for (var i = 0; i < a.length; i++) { var o = a [i]; if (o) o.close (); else r = false; } else top.close (); return r; }

function openRyokinClinicWindow () {
	if(window.screen.height <= 600){
		openWindow ("index2.html", "auRyokinClinicWindow", 666, 500, "000110",1);
	}else if(window.screen.height <= 768){
		openWindow ("index2.html", "auRyokinClinicWindow", 666, 680, "000110",1);
	}else{
		openWindow ("index2.html", "auRyokinClinicWindow", 650, 680, "000010",1);
	}
}

