<!--//
function SelectJumpURL(obj) 
{
  url = obj.options[obj.selectedIndex].value;
  if (url != '')
  {
    window.location = url;
  }
}
function _JumpURLnewWin(url,sizeX,sizeY) 
{
  if (url != ''){
    win=window.open(url,"a","scrollbars=0,resizable=yes,width=" + sizeX + ",height=" + sizeY);
  }
}
function changeImg(iName,img){
	document.images[iName].src=img;
}
function mOvr(src,clrOver,targ){ 
	if (!src.contains(event.fromElement)){
//		for(j=0; j<document.schedule.elements.length; j++){
//			if (document.schedule.elements[j].value == targ){
//				if(document.schedule.elements[j].checked == false){
//					src.style.cursor = 'hand'; 
//					src.bgColor = clrOver; 
//				}
//			}
//		}
		if(document.schedule[targ].checked == false){
			src.style.cursor = 'hand'; 
			src.bgColor = clrOver;
		}
	} 
} 
function mOut(src,clrIn,targ){ 
	if (!src.contains(event.toElement)){ 
//		for(j=0; j<document.schedule.elements.length; j++){
//			if (document.schedule.elements[j].value == targ){
//				if(document.schedule.elements[j].checked == false){
//					src.style.cursor = 'default'; 
//					src.bgColor = clrIn; 
//				}
//			}
//		}
		if(document.schedule[targ].checked == false){
			src.style.cursor = 'default'; 
			src.bgColor = clrIn;
		}
	} 
} 
function mClk(src,clrIn,targ){ 
	if (!src.contains(event.toElement)){ 
//		src.style.cursor = 'default'; 
//		src.bgColor = clrIn; 
//		for(j=0; j<document.schedule.elements.length; j++){
//			if (document.schedule.elements[j].value == targ){
//				document.schedule.elements[j].checked=true;
//			}
//		}
		if(document.schedule[targ].checked == false){
				document.schedule[targ].checked = true;
			src.style.cursor = 'default'; 
			src.bgColor = clrIn;
		}else{
				document.schedule[targ].checked = false;
				src.style.cursor = 'default'; 
				src.bgColor = '#FFFFFF';
		}
	} 
} 

function formConfirm(type) {
	if (type == "update") {
		return confirm("データを保存します。\nよろしいですか？");
	}
	if (type == "cancel") {
		return confirm("変更内容を破棄して前のページに戻ります。\nよろしいですか？");
	}
	if(type == "delete") {
		return confirm("この情報を削除します。\n復旧することはできません。\nよろしいですか？");
	}
	if (type == "jobupdate") {
		return confirm("求人情報を変更後、\nsalonjob本部への再申請が必要です。\nよろしいですか？");
	}

	return false;
}

// function formConfirmSubmit(type,obj) {
//	if (type == "jobupdate") {
//		var ckflg = confirm("求人情報を変更後、\nsalonjob本部への再申請が必要です。\nよろしいですか？");
//		if(ckflg){
//			obj.submit();
//		}
//	}
// 
//	return false;
// }

function formConfirmUC(type,nexturl) {
	
	if (type == "jobupdate") {
		var ckflg = confirm("求人情報を変更後、\nsalonjob本部への再申請が必要です。\nよろしいですか？");
		if(ckflg){
			window.location = nexturl;
		}
	}
	if (type == "reentrycopy") {
		var ckflg = confirm("再掲載用に求人広告データのコピーを作成します。\nよろしいですか？");
		if(ckflg){
			window.location = nexturl;
		}
	}
	return false;
}


// baristride kata 
function chgStartDay(pSelect,pSelectYear,pSelectMonth,pSelectDay) {
	var dd = new Date();
	dd.setHours(0);
	dd.setMinutes(0);
	dd.setSeconds(0);

	if(dd.getDay()!=4){ // 本日が木曜日の場合は除く

		// 直前の木曜日を取得
		for(i=1;i<7;i++){
			dd.setTime(dd.getTime() - (3600 * 24 * 1000));
			if(dd.getDay()==4) break;
		}

	}

	// ***の木曜日を取得
	for(i=1;i<=(pSelect.options[pSelect.selectedIndex].value);i++){
		dd.setTime(dd.getTime() + (7 * 24 * 3600 * 1000));
	}

	// StartDayの変更
	for(i=1;i<=pSelectYear.length;i++){
		if(pSelectYear.options[i].value == dd.getFullYear()){
			pSelectYear.selectedIndex = i;
			break;
		}
	}
	pSelectMonth.selectedIndex = dd.getMonth() + 1;
	pSelectDay.selectedIndex = dd.getDate();
	
	return;
}




//-->
