/* util.js by nenem */

var baseurl = "http://www.gakuseihousing.co.jp/";
//var baseurl = "";

function openidwin(req){
	tgt = this.baseurl + "detail.php?id=" + req;
	wsize = 'toolbar=yes,location=no,status=yes,menubar=yes,width=720,height=600,scrollbars=yes,resizable=yes';
	window.open(tgt,"DetailWindow",wsize);
}

function openmapwin(req){
	tgt = this.baseurl + "map_picture.php?id=" + req;
	wsize = 'toolbar=yes,location=no,status=yes,menubar=yes,width=720,height=600,scrollbars=yes,resizable=yes';
	window.open(tgt,"MapWindow",wsize);
}

function openmoviewin_r(req){
	tgt = this.baseurl + "movie_r.php?id=" + req;
	wsize = 'toolbar=no,location=no,status=yes,menubar=no,width=500,height=400,scrollbars=no,resizable=yes';
	window.open(tgt,"MovieWindow",wsize);
}

function openmoviewin(req){
	tgt = this.baseurl + "movie.php?id=" + req;
	wsize = 'toolbar=no,location=no,status=yes,menubar=no,width=500,height=400,scrollbars=no,resizable=yes';
	window.open(tgt,"MovieWindow",wsize);
}

function openidwin_g(req,req2){
	tgt = this.baseurl + "g_picture.php?bid=" + req;
	tgt = tgt + "&kbn=" + req2;
	wsize = 'toolbar=yes,location=no,status=yes,menubar=yes,width=720,height=600,scrollbars=yes,resizable=yes';
	window.open(tgt,"g_pictureWindow",wsize);
}
function openidwin_h(req,req2){
	tgt = this.baseurl + "h_picture.php?bid=" + req;
	tgt = tgt + "&kbn=" + req2;
	wsize = 'toolbar=yes,location=no,status=yes,menubar=yes,width=720,height=600,scrollbars=yes,resizable=yes';
	window.open(tgt,"h_pictureWindow",wsize);
}
function openidwin_r(req,req2){
	tgt = this.baseurl + "r_picture.php?bid=" + req;
	tgt = tgt + "&kbn=" + req2;
	wsize = 'toolbar=yes,location=no,status=yes,menubar=yes,width=720,height=600,scrollbars=yes,resizable=yes';
	window.open(tgt,"r_pictureWindow",wsize);
}


function openidwin_pr(req,req2){
	tgt = this.baseurl + "r_picture.php?bid=" + req;
	tgt = tgt + "&kbn=" + req2;
	wsize = 'toolbar=yes,location=no,status=yes,menubar=yes,width=720,height=600,scrollbars=yes,resizable=yes';
	window.open(tgt,"sr_pictureWindow",wsize);
}



function openidwin_dp(req){
	tgt = this.baseurl + "detail_print.php?id=" + req;
	wsize = 'toolbar=yes,location=no,status=yes,menubar=yes,width=720,height=600,scrollbars=yes,resizable=yes';
	window.open(tgt,"DetailPicWindow",wsize);
}

function openidwin_dh(req){
	tgt = this.baseurl + "detail_haru_print.php?id=" + req;
	wsize = 'toolbar=yes,location=no,status=yes,menubar=yes,width=720,height=600,scrollbars=yes,resizable=yes';
	window.open(tgt,"DetailPicHaruWindow",wsize);
}



function openidwin_pp(req,req2,req3){
	tgt = this.baseurl + "ss_picture.php?bid=" + req;
	tgt = tgt + "&kbn=" + req2;
	tgt = tgt + "&line=" + req3;
	wsize = 'toolbar=yes,location=no,status=yes,menubar=yes,width=720,height=600,scrollbars=yes,resizable=yes';
	window.open(tgt,"SS_pictureWindow",wsize);
}

function openidwin_pp_room( str_bid, str_rid, str_kbn, str_line ){
	tgt = this.baseurl + "ss_picture.php?bid=" + str_bid;
	tgt = tgt + "&rid=" + str_rid;
	tgt = tgt + "&kbn=" + str_kbn;
	tgt = tgt + "&line=" + str_line;
	wsize = 'toolbar=yes,location=no,status=yes,menubar=yes,width=720,height=600,scrollbars=yes,resizable=yes';
	window.open(tgt,"SS_pictureWindow",wsize);
}

function openwin(req){
	tgt = req;
	wsize = 'toolbar=yes,location=no,status=yes,menubar=yes,width=720,height=600,scrollbars=yes,resizable=yes';
	window.open(tgt,"DetailWindow",wsize);
}

function backwin(req){
//	tgt = "detail.php?id=" + req;
//	wsize = 'toolbar=yes,location=no,status=yes,menubar=yes,width=720,height=600,scrollbars=yes,resizable=yes';
	window.opener.location.href=req;
}

function openwin_kitchen_picture( pic_name ){
	tgt = this.baseurl + "kitchen_picture.php?pic_name=" + pic_name;
	wsize = 'toolbar=no,location=no,status=yes,menubar=yes,width=720,height=600,scrollbars=yes,resizable=yes';
	window.open(tgt,"kitchen",wsize);
}
