
function Conf(){
	if( window.confirm('この内容で宜しいですか？') ){
		return true;
	} else{
		return false;
	};
}

function ConfMsg(msg){
	if( window.confirm(msg) ){
		return true;
	} else{
		return false;
	};
}

function SetChatFocus(){
	document.forms[0].elements[5].focus();
}

if (document.images) {
        for (i=0; i<5; i++) {
                x = 'img'+i
                x = new Image();
                x.src =  "/index/img/recommend_0"+eval(i+1)+".gif";
        }
}
function ChangeRecomend(Num){
        if (document.images) { document.images['RecommendImage'].src = '/index/img/recommend_0'+Num+'.gif'}
}
function InitRecommend(){
        x = Math.round (Math.random () * 5 + 0.5);
        ChangeRecomend(x);
}

if (document.images) {
        for (i=0; i<6; i++) {
                if(i < 3){
                        x = 'img1'+i
                        x = new Image();
                        x.src =  "/common/img/rickdom_search_"+i+".gif";
                }
                else{
                        x = 'img1'+i
                        x = new Image();
                        x.src =  "/common/img/rickdom_clear_"+eval(i-3)+".gif";
                }
        }
}
function MouseButton(Targ,Num){
        if (document.images) { document.images[Targ].src = '/common/img/rickdom_'+Targ+'_'+Num+'.gif'}
}
