var WinX;var WinY;var winNo=0;function openWin(shopid){	/*	subwin = new Window(				"win"+winNo, { 					className: "dialog", 					title: "PJW Sample", 					left:10, 					top:200, 					width:320, 					height:240, 					zIndex:200 					// url: "http://www.openspc2.org/"								});	*/	// navigator_co();	// windowsSize ();	WinX=document.body.clientWidth;	WinY=document.body.clientHeight;		url = "shop.php?type=detail&shopid="+shopid;	var subwin = new Window(				"win"+winNo, {					className: "dialog",  					left:50, 					top:50, 					width:WinX-150, 					height:WinY-150, 					zIndex: 100, 					url: url,					resizable: false, 					title: "お店詳細 左の×で閉じれます"+"<input type=\"button\" value=\"閉じる\" onClick=\"closeAll()\">", 					showEffect:Effect.BlindDown, 					hideEffect: Effect.SwitchOff, 					draggable:false, 					wiredDrag: false				});	// winNo++;	// subwin.getContent().innerHTML = "Hello world !!";	// subwin.showCenter(); 	subwin.setDestroyOnClose();	subwin.show(); }function openReportWriteWin(shopid){	/*	subwin = new Window(				"win"+winNo, { 					className: "dialog", 					title: "PJW Sample", 					left:10, 					top:200, 					width:320, 					height:240, 					zIndex:200 					// url: "http://www.openspc2.org/"								});	*/		navigator_co();	windowsSize ();	url = "report.php?type=shopmodform&shopid="+shopid;	var subwin = new Window(				"win"+winNo, {					className: "dialog",  					left:50, 					top:50, 					width:WinX-100, 					height:WinY-100, 					zIndex: 100, 					url: url,					resizable: false, 					title: "レポートを書く 左の×で閉じれます", 					showEffect:Effect.BlindDown, 					hideEffect: Effect.SwitchOff, 					draggable:false, 					wiredDrag: false				});	// winNo++;	// subwin.getContent().innerHTML = "Hello world !!";	// subwin.showCenter(); 	subwin.setDestroyOnClose();	subwin.show(); }function newmember_close(){	YAHOO.util.Dom.setStyle("shopopenspace","visibility","hidden");}function openNewMemberWin(){		h = 600;		w = 650; 		url = "mypage.php?type=useraddform";	    content  = "<div style=\"width:650px;\">";	    content += "<div align=\"right\"><a class=\"link_a\" onclick=\"newmember_close();\"><img src=\"img/tojiru.gif\"></a></div>";	    content += "<iframe frameborder=\"0\" name=\"_content\"  id=\"_content\" src=\"" + url + "\" width=\"" + w + "\" height=\"" + h + "\"> </iframe>";	    content += "<div>";		YAHOO.util.Dom.get("shopopenspace").innerHTML = content;			moveh = YAHOO.util.Dom.getClientHeight() / 5		movew = YAHOO.util.Dom.getClientWidth()  / 5;				YAHOO.util.Dom.setX("shopopenspace",movew);			YAHOO.util.Dom.setY("shopopenspace",moveh);			YAHOO.util.Dom.setStyle("shopopenspace","visibility","inherit");		ddDrag = new YAHOO.util.DD("shopopenspace");}function openReportWin(favoriteid){	url = "shop.php?type=reportdetail&favoriteid="+favoriteid;	WinX=document.body.clientWidth;	WinY=document.body.clientHeight;	var subwin = new Window(				"win"+winNo, {					className: "dialog",  					left:50, 					top:50, 					width:WinX-150, 					height:WinY-150, 					zIndex: 100, 					url: url,					resizable: false, 					title: "レポート 左の×で閉じれます"+"<input type=\"button\" value=\"閉じる\" onClick=\"closeAll()\">", 					showEffect:Effect.BlindDown, 					hideEffect: Effect.SwitchOff, 					draggable:false, 					wiredDrag: false				});	// winNo++;	// subwin.getContent().innerHTML = "Hello world !!";	// subwin.showCenter(); 	subwin.setDestroyOnClose();	subwin.show(); }function openFriendWin(oj){		h = 600;		w = 630; 	    content  = "<div style=\"width:550px;\">";	    content += "<div align=\"right\"><a class=\"link_b\" onclick=\"newmember_close();\"><img src=\"img/tojiru.gif\"></a></div>";	    content += oj.responseText;	    content += "<div>";		YAHOO.util.Dom.get("shopopenspace").innerHTML = content;			//moveh = YAHOO.util.Dom.getClientHeight() / 2		//movew = YAHOO.util.Dom.getClientWidth()  / 5;		moveh = 10;		movew = 10;			YAHOO.util.Dom.setX("shopopenspace",movew);			YAHOO.util.Dom.setY("shopopenspace",moveh);			YAHOO.util.Dom.setStyle("shopopenspace","visibility","inherit");		//ddDrag = new YAHOO.util.DD("shopopenspace");/*		var subwin = new Window(					"win"+winNo, {						className: "dialog",  						left:0, 						top:0, 						width:300, 						height:300, 						zIndex: 100, 						resizable: false, 						title: "友達リスト", 						showEffect:Effect.BlindDown, 						hideEffect: Effect.SwitchOff, 						draggable:false, 						wiredDrag: false					});				subwin.getContent().innerHTML = oj.responseText;		subwin.setDestroyOnClose();		subwin.showCenter(); 	*/}function openImageWin(oj){		h = 600;		w = 630; 		url = "mypage.php?type=photo";	    content  = "<div style=\"width:550px;\">";	    content += "<div align=\"right\"><a class=\"link_a\" onclick=\"newmember_close();\"><img src=\"img/tojiru.gif\"></a></div>";	    content += oj.responseText;/*	    content += "<iframe frameborder=\"0\" name=\"_content\"  id=\"_content\" src=\"" + url + "\" width=\"" + w + "\" height=\"" + h + "\"> </iframe>";*/	    content += "<div>";	    content += "<div>";		YAHOO.util.Dom.get("shopopenspace").innerHTML = content;			//moveh = YAHOO.util.Dom.getClientHeight() / 2		//movew = YAHOO.util.Dom.getClientWidth()  / 5;		moveh = 10;		movew = 10;			YAHOO.util.Dom.setX("shopopenspace",movew);			YAHOO.util.Dom.setY("shopopenspace",moveh);			YAHOO.util.Dom.setStyle("shopopenspace","visibility","inherit");		//ddDrag = new YAHOO.util.DD("shopopenspace");}function imagewin_close(){	YAHOO.util.Dom.setStyle("updateimagewin","visibility","hidden");}function closeAll(){	Windows.closeAll();}
