function fY_SetWord(word){
	document.fSearch.query.value = word;
	document.fSearch.submit();
}

function fA_SetWord(word){
	document.fSearch.BrowseNodeId.value = word;
	document.fSearch.submit();
}

function fR_SetWord(word){
	document.fSearch.genreId.value = word;
	document.fSearch.submit();
}

function fA_OpenImg(url,img,width,height){
	width2=width+6;
//	height2=height+32;
	height2=height+52;
//	window.showModalDialog(url+"?img="+img+"&width="+width+"&height="+height,"","dialogWidth:"+width2+"px;dialogHeight:"+height2+"px;help:no;status:no;scroll:no");
	window.showModalDialog(url+"?img="+img+"&width="+width+"&height="+height,"","dialogWidth:"+width2+"px;dialogHeight:"+height2+"px;help:no;scroll:no");
//	w = window.open(url+"?img="+img+"&width="+width+"&height="+height,"_blank","width="+width2+",height="+height2);
}

function fR_MenuOpen(id) {
	if(eval(id).style.display == ''){
		eval(id).style.display = 'none';
	}else{
		eval(id).style.display = '';
	}
}

isNS6 = navigator.appName.charAt(0) == "N" && navigator.appVersion.charAt(0) == 5;
cursortype = isNS6?'pointer':'hand';

function fMouseCursor(id,on){
	if(on){
		document.getElementById(id).style.cursor=cursortype;
	}else{
		document.getElementById(id).style.cursor="default";
	}
}

function fMouseColor(id,on){
	if(on){
		old_color=document.getElementById(id).style.backgroundColor;
		document.getElementById(id).style.backgroundColor = '#FFC0CB';
	}else{
		document.getElementById(id).style.backgroundColor = old_color;
	}
}

function fMouseMenu(id,on){
	if(on){
		old_color=document.getElementById(id).style.backgroundColor;
		document.getElementById(id).style.backgroundColor = '#FFC0CB';
		document.getElementById(id).style.cursor=cursortype;
	}else{
		document.getElementById(id).style.backgroundColor = old_color;
		document.getElementById(id).style.cursor="default";
	}
}

function fMouseMenuCatalog(id,on){
	if(on){
		old_color=document.getElementById(id+'_1').style.backgroundColor;
		document.getElementById(id+'_1').style.backgroundColor = '#FFC0CB';
		document.getElementById(id+'_2').style.backgroundColor = '#FFC0CB';
	}else{
		document.getElementById(id+'_1').style.backgroundColor = old_color;
		document.getElementById(id+'_2').style.backgroundColor = old_color;
	}
}

function fMouseMenuAuction(id,on){
	if(on){
		old_color=document.getElementById(id+'_1').style.backgroundColor;
		document.getElementById(id+'_1').style.backgroundColor = '#FFC0CB';
		document.getElementById(id+'_2').style.backgroundColor = '#FFC0CB';
		document.getElementById(id+'_1').style.cursor=cursortype;
		document.getElementById(id+'_2').style.cursor=cursortype;
	}else{
		document.getElementById(id+'_1').style.backgroundColor = old_color;
		document.getElementById(id+'_2').style.backgroundColor = old_color;
		document.getElementById(id+'_1').style.cursor="default";
		document.getElementById(id+'_2').style.cursor="default";
	}
}

function fQuestion(no){
	document.fQuestion.answer.value=no;
	document.fQuestion.submit();
}

function fAnswer(){
	document.fAnswer.submit();
}

function fAnswerE(url){
	document.fAnswer.action=url;
	document.fAnswer.submit();
}
