//ウィンドウを開く
function win_open(file_path,title_name,Width,Height,scroll){
	if(file_path != "" && Width != "" && Height != ""){
		if(scroll == ""){
			scroll = "no";
		}
		window.open(file_path,title_name,'tolbar=no,location=no,directories=no,status=no,menubar=no,width='+Width+',height='+Height+',scrollbars='+scroll+',resizeble='+scroll);
		return;
	}else{
		return;
	}
}



//フラッシュ表示
function swf_show(IDname, SWF_FILE, WIDTH, HEIGHT, QUALITY, SWF_VALUE){
	
	if(IDname == '' || SWF_FILE == ''){
		return(false);
	}
	
	var swf_tag = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + WIDTH + '" height="' + HEIGHT + '" id="top" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="' + SWF_FILE + SWF_VALUE + '" /><param name="wmode" value="transparent" /><param name="quality" value="' + QUALITY + '" /><param name="scale" value="noscale" /><embed src="' + SWF_FILE + SWF_VALUE + '" quality="' + QUALITY + '" scale="noscale" width="' + WIDTH + '" height="' + HEIGHT + '" name="top" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" /></object>';
	
	if(document.getElementById(IDname) != null){
		document.getElementById(IDname).innerHTML = swf_tag;
	}else if(document.getElementsByName(IDname) != null){
		document.getElementsByName(IDname).item(0).innerHTML = swf_tag;
	}else{
		return(false);
	}
	
	return(true);
}


//GETの変数を配列に格納
function get_value(){
	
	var query = window.location.search.substring(1);
	query = query.replace("/?/","");
	
	if(!(query.length > 0) || query.indexOf("=") == -1){
		return(false);
	}
		
	var values = query.split('&');
	var out_obj = new Object();
	var data = new Object();
	for(var c = 0;c < values.length;c ++){
		data = values[c].split('=');
		out_obj[data[0].toString()] = data[1].toString();
	}
	
	return(out_obj);
}
