//  ================================================================================
//	
//	凡用
//	
//  ================================================================================

//ロールオーバー
function RollOver (obj,val) {
	obj.src = val;
}

//別ウィンドウ
function AOpen(WO){
	NewWin=window.open("","MWindow","menubar=yes,toolbar=no,location=yes,directories=no,status=yes,scrollbars=yes,resizable=yes,width=650,height=650");
	NewWin.location.href=WO;
	NewWin.focus();
}

//別ウィンドウ
function BOpen(WO){
	NewWin=window.open("","MWindow","menubar=yes,toolbar=no,location=yes,directories=no,status=yes,scrollbars=yes,resizable=yes,width=550,height=480");
	NewWin.location.href=WO;
	NewWin.focus();
}

//別ウィンドウ
function COpen(WO){
	NewWin=window.open("","MWindow","menubar=yes,toolbar=no,location=yes,directories=no,status=yes,scrollbars=yes,resizable=yes,width=650,height=480");
	NewWin.location.href=WO;
	NewWin.focus();
}

//別ウィンドウ(過去TokuToku)
function tokuOpen(WO){
	NewWin=window.open("","MWindow","menubar=yes,toolbar=no,location=yes,directories=no,status=yes,scrollbars=yes,resizable=yes,width=700,height=650");
	NewWin.location.href=WO;
	NewWin.focus();
}


//プルダウンジャンプ
function navi(myURL) {
	url = myURL.options[myURL.selectedIndex].value;
	if(url != "") {
	location.href = url;
	}
}


//nth-last-childがIEで使えないので作った。
//右側が連結されているものには使えません。
//cellAddClassNo（つける場所,つけるクラス名,右から何個目のセルにクラスをつけるか）
function cellAddClassNo(addAddress,addCellName,cellLength){
	$(addAddress).each(function(){
		$(this).children().each(function (i) {
			i = i+1;
			lineLength = i;
		});
		$(this).children("td:nth-child("+((lineLength-cellLength)+1)+")").addClass(addCellName);
	});
}



