function MM_openBrWindow(theURL,x,y) { //v2.0
	popWin = window.open(theURL,'popWin','status=yes,scrollbars=yes,resizable=yes,width=' + x + ',height=' + y);
	if ( popWin != null ) {
		popWin.focus();
	}
}

function toJapanese(){
	theKey = "english";
	replaceKey = "japanese";
	myURL = self.location.href;
	endpoint = myURL.indexOf(theKey);
	myURL1 = myURL.substring(0,endpoint);
	myURL2 = myURL.substring( (endpoint + theKey.length) , myURL.length);
	myURL = myURL1 + replaceKey + myURL2;
	setTimeout("self.location.replace(myURL);", 300);
}

function toEnglish(){
	theKey = "japanese";
	replaceKey = "english";
	myURL = self.location.href;
	endpoint = myURL.indexOf(theKey);
	myURL1 = myURL.substring(0,endpoint);
	myURL2 = myURL.substring( (endpoint + theKey.length) , myURL.length);
	myURL = myURL1 + replaceKey + myURL2;
	setTimeout("self.location.replace(myURL);", 300);
}

