/* --------------------------------------------------------------------------------------
	Window Open
-------------------------------------------------------------------------------------- */
//_blank Windowirequidj
function fncWinRequidOpen(src,width,height){
	if(! fncWinRequidOpen.arguments[1]) width  = 560;
	if(! fncWinRequidOpen.arguments[2]) height = 500;
	// ad 付きでアクセスされていたら引き継ぐ
	var ad = getParameter(location.search).ad;
	if(ad != null) {
		src += "?ad=" + ad; 
	}
	var wo = window.open(src,"_blank","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,left=0,top=0,width=" + width + ",height=" + height);
	wo.window.focus();
}

// Query String から 配列を返す
function getParameter(str){
	var dec = decodeURIComponent;
	var par = new Array, itm;
	if(typeof(str) == 'undefined') return par;
	if(str.indexOf('?', 0) > -1) str = str.split('?')[1];
	str = str.split('&');
	for(var i = 0; str.length > i; i++){
		itm = str[i].split("=");
		if(itm[0] != ''){
			par[itm[0]] = typeof(itm[1]) == 'undefined' ? true : dec(itm[1]);
		}
	}
	return par;
}

