Hi,

I've got a chinese version of a site that I've translated everything except the Alert boxes.

Here's the English version:

<script language="JavaScript">
function validateForm(part_search) {
var partsearch = part_search.partsearch.value;

if (partsearch == "") {
alert("Please insert a Part Number.");
return false; }
return true;}
</script>


Please insert a Part Number = 请输入型号

So.. I've tried both decimal values (#35831;#36755;#20837;#22411;#21495; ....Removed &'s or else this interface will display Chinese characters)


<script language="JavaScript">
function validateForm(part_search) {
var partsearch = part_search.partsearch.value;

if (partsearch == "#35831;#36755;#20837;#22411;#21495;") {
alert("");
return false; }
return true;}
</script>

This just displays raw #35831;#36755;#20837;#22411;#21495;

and Unicode:

<script language="JavaScript">
function validateForm(part_search) {
var partsearch = part_search.partsearch.value;

if (partsearch == "") {
alert("\u8BF7\u8F93\u5165\u578B\u53F7");
return false; }
return true;}
</script>

This displays boxes...

What am I doing wrong??

Thanks