var dateList = new Array();
dateList.push("200905");
dateList.push("200906");


// -------------------------------------------------------------------------------
var baseURL = "/";
function jumpBacknumber(obj){
	var optionValue = obj.options[obj.selectedIndex].value;
	if(optionValue != ""){
		var url = baseURL + 'backnumber/' + optionValue + '/index.html';
		location.href = url;
	}
}

function writeBacknumberSelecter(){
	var html = '<select name="backnumberMenu" id="backnumberMenu" onchange="jumpBacknumber(this)">';
	html += '<option value="">過去の投稿作品</option>';
	var m;
	var d;
	for(var i=0; i<dateList.length; i++){
		y = dateList[i].substring(0,4) - 0;
		m = dateList[i].substring(4,6) - 0;
		d = dateList[i].substring(6,8) - 0;
		html += '<option value="' + dateList[i] + '">' + y + '年' + m + '月</option>';
	}
	html += '</select>';
	getElement("backnumberForm").innerHTML = html;
}

function getElement(id){
	if(document.all) elm=document.all[id];
	else elm=document.getElementById(id);
	return elm;
}


