<!-- Hide from other Browsers
//-------------------------------------------------------別ウインドウ関連//
//*************************//
//  OpenInfo() 詳細頁表示
//*************************//
function OpenInfo(DIR_NAME,ServID,UID,JID,OP1,OP2) {
	if((ServID!='')&&(UID!='')&&(JID!='')){
		if(itemLoad!=1) {
			alert('頁が全て表示されるまでお待ちください。');
			frames[0].document.location.reload();
			return;
		}
//		var toform=frames[0].document.forms[1];
		var form=frames[0].document.forms[0];
		var now = new Date();
		var toURL=root_url+DIR_NAME+"/infoview.php?"+now.getTime();
		toURL+="&ServID="+ServID+"&users_id="+UID+"&jbango="+JID;
		if(OP1!=''){
			if(OP1.indexOf("estimate",0)>=0){ var tempOP=OP1.split("/"); toURL+="&"+tempOP[0]+"=1&master_id="+tempOP[1];
			}else{ toURL+="&"+OP1+"=1"; }
		}
		if(OP2=='gis'){ toURL+="&gis=1"; }
		if(OP2=='est'){ toURL+="&est=1"; }
		if(form.startmenu.value!=''){ toURL += "&startmenu=" + form.startmenu.value; }
		if(form.login.value!=''){ toURL += "&login=" + form.login.value; }
		if(form.flgview.value!=''){ toURL += "&flgview=" + form.flgview.value; }
		if(OP2=='emp'){ toURL+="&emp=1";
			if(OP1=='detail'){ toURL+="#detail"; }
		}
		if(form.gis_japan.value==1){ toURL += "&gis_japan=1"; }
		infoWin = window.open(toURL,'infoWin','toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=830,height=600,alwaysRaised=1');
		infoWin.focus();
	}
}

var otherWin="";

function OpenWin(toURL,toW,toH,ckSbar,ckMbar) {
		if((toW!='')&&(toW!='')){
			otherWin = window.open(toURL,'otherWin','toolbar=0,location=0,directories=0,status='+ckSbar+',menubar='+ckMbar+',scrollbars=1,resizable=1,width='+toW+',height='+toH+',alwaysRaised=1');
		}else{
			otherWin = window.open(toURL,'otherWin','toolbar=0,location=0,directories=0,status='+ckSbar+',menubar='+ckMbar+',scrollbars=1,resizable=1,alwaysRaised=1');
		}
		otherWin.focus();
}
// End Hide -->
