//var today = new Date();
//var mm = today.getMonth();
//var dd = today.getDate()-1;
function index_set(){
obj1_1=document.forms[0].elements[10];
obj1_2=document.forms[0].elements[11];
obj1_3=document.forms[0].elements[12];
obj1_4=document.forms[0].elements[13];
obj_tp = document.forms[0].elements[27];

//obj2_1=document.forms[0].elements[11];
//obj2_2=document.forms[0].elements[12];
//obj3_1=document.forms[0].elements[14];
//obj3_2=document.forms[0].elements[15];

var mm = location.search.substring(1);
var dd = location.hash.substring(1,3);
var tt = location.hash.substring(3,5);
var tt2 = location.hash.substring(5,7);
var tp = location.hash.substring(7);

//if(mm < 10){
//mm = mm.substring(2);
//}

//if(dd < 10){
//dd = dd.substring(1);
//}
//if(tt != "" || tt > 0 || tt< 22){
//tt = tt - 11;
//}



if(mm > 0 && mm <13){
	obj1_1.selectedIndex = mm;
//	obj2_1.selectedIndex=mm;
//	obj3_1.selectedIndex=mm;
}

if(dd > 0 && dd < 32){
	obj1_2.selectedIndex = dd;
//	obj2_2.selectedIndex=dd;
//	obj3_2.selectedIndex=dd;
}

//if(tt > 0 && tt < 11){
//	obj1_3.selectedIndex = tt;
//	obj2_2.selectedIndex=dd;
//	obj3_2.selectedIndex=dd;
//}

if(tt > 0){
if(tt == 12){
	obj1_3.selectedIndex = 1;
}
if(tt == 13){
	obj1_3.selectedIndex = 2;
}
if(tt == 14){
	obj1_3.selectedIndex = 3;
}
if(tt == 15){
	obj1_3.selectedIndex = 4;
}
if(tt == 16){
	obj1_3.selectedIndex = 5;
}
if(tt == 17){
	obj1_3.selectedIndex = 6;
}
if(tt == 18){
	obj1_3.selectedIndex = 7;
}
if(tt == 19){
	obj1_3.selectedIndex = 8;
}
if(tt == 20){
	obj1_3.selectedIndex = 9;
}
if(tt == 21){
	obj1_3.selectedIndex = 10;
}
}

if(tt2 != ""){
if(tt2 == 00){
	obj1_4.selectedIndex = 1;
}
if(tt2 == 10){
	obj1_4.selectedIndex = 2;
}
if(tt2 == 20){
	obj1_4.selectedIndex = 3;
}
if(tt2 == 30){
	obj1_4.selectedIndex = 4;
}
if(tt2 == 40){
	obj1_4.selectedIndex = 5;
}
if(tt2 == 50){
	obj1_4.selectedIndex = 6;
}
}



if(tp != ""){
	obj_tp.selectedIndex = tp;
}

//if(dd >= 18){
//	mm = mm + 1;
//	dd = 0;
//	if(mm == 12){
//		mm = 0;
//		dd = 0;
//	}
//}

if(document.forms[0].elements[4].value == ""){
document.forms[0].elements[4].focus();
}



if(document.all || document.getElementById){
	if(document.forms[0].elements[24].checked != false){
	document.getElementById('time4').style.display = "block";
	}
}

if(document.all || document.getElementById){
	shimei6 = document.forms[0].elements[27].selectedIndex;
	if(shimei6 != 0){
	document.getElementById('shimei4').style.display = "block";
	document.forms[0].elements[28].checked = true;
	}
}


}
window.onload=index_set;
