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 (var i=0; i<6; i++) 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 newWin(url,w,h) {
	newwin =window.open(url,'detail','toolbar=no,location=no,resizable=yes,status=no,scrollbars=yes,width='+w+',height='+h+',left=0,top=0');
	newwin.focus();
}

var is_ieM = navigator.userAgent.indexOf("-TS01",0);
if ((is_ieM) >-1) {
	/**
	 * 要素の高さ合わせる
	 * depends prototype.js ver 1.5+;
	 */
	Event.observe(window, "load", heightFix, false);
	function heightFix() {
		for(var i = 1; i <= 9; i++) {
			if($$(".heightLine-" + i).length) {
				var mh = 0;
				$$(".heightLine-" + i).each(function(obj){
					mh = Math.max(mh, obj.getHeight());
				});
				$$(".heightLine-" + i).each(function(obj){			
					var padding = obj.getStyle('padding-bottom').replace('px', '');
					obj.setStyle({height:mh - padding + 'px'});
				});
			} else {
				continue;
			}
		}
		
		$$(".heightLineParent").each(function(obj) {
			var children = obj.childElements();
			var mh = 0;
			children.each(function(child) {
				mh = Math.max(mh, child.getHeight());
			});
			children.each(function(child) {
				child.setStyle({height:mh + 'px'});
			});
		});
	}
}