var vdsp;
var vds;
 function kanji_read(kanji){
buf = kanji;
	 if(buf != ""){
	text_count = buf.length;
	text_limit = vds.getStringLimit();
	 if(text_count > text_limit){
	 alert("Chosen letters exceed 400 characters");
	 }else{
	 vds.setCast("KeikoJPf");
	 vds.speak(buf);
	switch(vds.getServerError()){
	case -301:
	alert("Sorry. The reproduction number of times per 1st in this site exceeded a quota.");
	break;
	case -501:
	alert("Please reload a page, and push the reproduction button once again.");
	break;
	}
	}
	}
}
