function handleMarquee( obj, num ) {
	obj.scrollAmount = num;
}

function view(name)
{
	if(document.layers) {
		var txtObj = document.layers[name];
		if (txtObj.display != 'none' ) {
			txtObj.display = 'none';
		} else {
			txtObj.display = '';
		}
	}
	else if (document.all) {
		var txtObj = document.all(name);
		if (txtObj.style.display != 'none') {
			txtObj.style.display = 'none';
		} else {
			txtObj.style.display = '';
		}
	}
	else if (document.getElementById){
		var txtObj = document.getElementById(name);
		if (txtObj.style.display != 'none') {
			txtObj.style.display = 'none';
		} else {
			txtObj.style.display = '';
		}
	}
}

function changeBgColor( Obj,Color ) {
	Obj.style.backgroundColor = Color;
}

function allCheck( Obj,Bool ) {
	var txt = "";
	for( var i=0; i<Obj.length; i++ ) {
		Obj[i].checked = Bool;
	}
}

function logOut() {
	return confirm("���O�A�E�g�����܂����H");
}

window.onload = function initRollovers() {
		if (!document.getElementsByTagName) return

		var aPreLoad = new Array();
		var sTempSrc;
		var aImages = document.getElementsByTagName('img');

		for (var i = 0; i < aImages.length; i++) {
			//if (aImages[i].className == 'imgNav') {
			if (/imgNav/.test(aImages[i].className) ) {
				var src = aImages[i].getAttribute('src');
				if( /On/.test(src) ) continue;
				var ftype = src.substring(src.lastIndexOf('.'), src.length);
				var hsrc = src.replace(ftype, 'On'+ftype);

				aImages[i].setAttribute('hsrc', hsrc);

				aPreLoad[i] = new Image();
				aPreLoad[i].src = hsrc;

				aImages[i].onmouseover = function() {
					sTempSrc = this.getAttribute('src');
					this.setAttribute('src', this.getAttribute('hsrc'));
				}

				aImages[i].onmouseout = function() {
					if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('On'+ftype, ftype);
					this.setAttribute('src', sTempSrc);
				}
			}
		}
	}
