var d = new Date();
var dy = d.getYear();
function monthmenu(){
	var dm = d.getMonth();
	var mm ="";
	var mv = "";
	dy = d.getYear();
	if ( dy < 2000 ) {
		dy = dy - 100 + 2000;
	}
	for( i=1; i<13 ; i++ ) {
		dm = dm +1;
		if ( dm >12 ) {
			dm = 1;
			dy = dy + 1;
		}
		if ( dm <10 ) {
			mm = "0" + dm;
			mv = dm + "  ";
		} else {
			mm = dm;
			mv = dm;
		}
		this.document.HForm.p_month.options[i] = new Option( mv, dy+"/"+ mm +"/01" );
	}
}

function datemenu() {
	document.HForm.p_dd.length = 1;
	document.HForm.p_dd.options[0].text = " 　";
	selMonth = eval( document.HForm.p_month.options[document.HForm.p_month.selectedIndex].text );
	if ( selMonth != "" ) { 
		mld = new Date(dy, selMonth, 1);
		mld.setDate(0);
		brk = mld.getDate();
		for ( i = 1 ; i <= brk ; i++) {
			document.HForm.p_dd.length = i +1;
			document.HForm.p_dd.options[i].text = i ;
		}
	}
}
  
//function check(p) {
//	if ( document.HForm.p_dest[p+2].checked ) {
//		document.HForm.p_dest[p+2].checked = false;
//	} else {
//		document.HForm.p_dest[p+2].checked = true;
//	}
//}

function setSub(){
//	if ( document.HForm.p_dest[4].checked ) {
//		document.HForm.p_dest[0].value = "SK";
//	} else {
//		document.HForm.p_dest[0].value = "";
//	}

//	if ( document.HForm.p_dest[11].checked ) {
//		document.HForm.p_dest[1].value = "HR";
//	} else {
//		document.HForm.p_dest[1].value = "";
//	}

	document.HForm.submit();
}

function setRe(){
	document.HForm.reset();
}

function setRe2(){
	document.HForm2.reset();
} 