function initRollovers() {
	if (!document.getElementById) return
	
	var aPreLoad = new Array();
	var sTempSrc;
	var Images = document.getElementsByTagName('img');

	for (var i = 0; i < Images.length; i++) {		
		if (Images[i].className == 'imgover') {
			var src = Images[i].getAttribute('src');
			var ftype = src.substring(src.lastIndexOf('.'), src.length);
			var hsrc = src.replace(ftype, '_ov'+ftype);

			Images[i].setAttribute('hsrc', hsrc);
			
			aPreLoad[i] = new Image();
			aPreLoad[i].src = hsrc;
			
			Images[i].onmouseover = function() {
				sTempSrc = this.getAttribute('src');
				this.setAttribute('src', this.getAttribute('hsrc'));
			}	
			
			Images[i].onmouseout = function() {
				if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_ov'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}
		}
	}
}

try{
	window.addEventListener("load",initRollovers,false);
}catch(e){
	window.attachEvent("onload",initRollovers);
}

function setBlock(dspObj,vType){
	(document.getElementById(dspObj).style);
	document.getElementById(dspObj).style.display = vType;
	(document.getElementById(dspObj).style.display);
}

function check(){
	if(window.confirm('送信してよろしいですか？')){
		return true;
	}
	else{ // 「キャンセル」時の処理
		window.alert('キャンセルされました');
		return false;
	}

}
function check2(){
	if(window.confirm('消去してよろしいですか？')){
		return true;
	}
	else{ // 「キャンセル」時の処理
		window.alert('キャンセルされました');
		return false;
	}

}


function cText(obj){
if(obj.value==obj.defaultValue){
obj.value="";
obj.style.color="#000";
}
}

function sText(obj){
if(obj.value==""){
obj.value=obj.defaultValue;
obj.style.color="#999";
}
}

