You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
112 lines
2.7 KiB
112 lines
2.7 KiB
aEnglish="aeiouyAEIOUYaeiouyAEIOUYaeiouyAEIOUYaeiouyAEIOUYcnsCN!?";
|
|
aSymbol =" ";
|
|
|
|
function langselect(oSelLang) {
|
|
var oCtrl,i,j,k,sChar,x,sBlank;
|
|
sBlank = " ";
|
|
if (oSelLang.selectedIndex == 1) {
|
|
aKeys="'`^:~+";
|
|
aCharSet = aEnglish;
|
|
sBlank = "French";
|
|
aSymbol= " é É ";
|
|
aSymbol+="àè ù ÀÈ Ù ";
|
|
aSymbol+="âêîôû ÂÊÎÔÛ ";
|
|
aSymbol+=" ëï ü ËÏ Ü ";
|
|
aSymbol+="ç Ç ";
|
|
} else { if (oSelLang.selectedIndex == 2) {
|
|
aKeys="'`^:~+";
|
|
aCharSet = aEnglish;
|
|
sBlank = "German";
|
|
aSymbol= " ";
|
|
aSymbol+=" ";
|
|
aSymbol+=" ";
|
|
aSymbol+="ä öü Ä Ö ";
|
|
aSymbol+=" ß ";
|
|
} else { if (oSelLang.selectedIndex == 3) {
|
|
aKeys="'`^:~+";
|
|
aCharSet = aEnglish;
|
|
sBlank = "Spanish";
|
|
aSymbol= "áéíóúýÁÉÍÓÚÝ";
|
|
aSymbol+=" ";
|
|
aSymbol+=" ";
|
|
aSymbol+=" ü Ü ";
|
|
aSymbol+="çñ ÇÑ¡¿";
|
|
} else { if (oSelLang.selectedIndex == 4) {
|
|
aKeys="'/:^";
|
|
aCharSet = aMath;
|
|
sBlank = "Math";
|
|
aSymbol= "°¹²³±×· ";
|
|
aSymbol+="ؼ½¾ø ";
|
|
aSymbol+="÷ ";
|
|
aSymbol+="Ååµ ";
|
|
aSymbol+=" ";
|
|
} else { if (oSelLang.selectedIndex == 5) {
|
|
aKeys="^";
|
|
aCharSet = aMisc;
|
|
sBlank = "Misc";
|
|
aSymbol= "®©§¶ ";
|
|
aSymbol+=" ";
|
|
aSymbol+=" ";
|
|
aSymbol+=" ";
|
|
aSymbol+=" ";
|
|
} else {
|
|
sBlank = "";
|
|
aKeys="";
|
|
aCharSet = "";
|
|
}}}}}
|
|
for (i=1; i<6; i++) {
|
|
for (j=0; j<6; j++) {
|
|
eval("oCtrl = document.form1.c" + i + j + ";");
|
|
oCtrl.value="";
|
|
}}
|
|
if (sBlank != "") {
|
|
i=1;
|
|
j=0;
|
|
for (x=0;x<aSymbol.length;x++) {
|
|
sChar=aSymbol.charAt(x);
|
|
if (sChar != " ") {
|
|
eval("oCtrl = document.form1.c" + i + j + ";");
|
|
oCtrl.value=sChar;
|
|
j++;
|
|
if (j>5) { j=0; i++;}
|
|
}
|
|
}
|
|
}
|
|
document.syncform.csec.value=<%=SYSTEM.autologout%>;
|
|
return true;
|
|
}
|
|
|
|
function languagesupport(oTxt) {
|
|
var ostart,oText,schar,iidx,siidx;
|
|
|
|
document.syncform.csec.value=<%=SYSTEM.autologout%>;
|
|
if (bNSNG) { return true;}
|
|
|
|
oText = oTxt.value;
|
|
ostart=oText.length-1;
|
|
iidx=aKeys.indexOf(oText.charAt(ostart));
|
|
if (iidx == 5) {iidx = 4};
|
|
if (iidx != -1) {
|
|
ostart--;
|
|
schar=oText.charAt(ostart);
|
|
siidx=iidx*12;
|
|
iidx=aCharSet.indexOf(schar,siidx);
|
|
if (iidx != -1) {
|
|
if (aSymbol.charAt(iidx) != " ") {
|
|
oTxt.value=oText.substring(0,ostart)+aSymbol.charAt(iidx);
|
|
}
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
function copycharacter(oSel) {
|
|
var sText;
|
|
if (document.form1.txtRemoteEntry.value != "") {
|
|
eval("sText=top.detail."+document.form1.txtRemoteEntry.value+".value;");
|
|
sText = sText+oSel.value;
|
|
eval("top.detail."+document.form1.txtRemoteEntry.value+".value=sText;");
|
|
}
|
|
document.form1.languageext.focus();
|
|
return true;
|
|
}
|
|
|