<!--
function popupdisclaimer(url){
window.open(url,'disclaimer','width=300,height=300,left=0,top=0,menubar=no,scrollbars=no,resizable=no,status=no,toobar=no');
}

function MM_windows()
{
	if ((document.website.menu.value) != "")
	{
		window.open(document.website.menu.value);
	}	
}

function block(e) {
alert("Downloading of this image is not allowed");
return false;
}
function trap() {
if(document.images) {
document.images.logo.onmousedown = block;
}
}

function blockC(c) {
alert("ぃ非更瓜");
return false;
}
function trapChi() {
if(document.images) {
document.images.logo.onmousedown = blockC;
}
}

function blocksimC(c) {
alert("不准下载此图片");
return false;
}
function trapsimChi() {
if(document.images) {
document.images.logo.onmousedown = blocksimC;
}
}

function changeEngtoChiLanguage(newLanguage) {
	var curLoc = parent.location.href;
	var docPos = curLoc.indexOf("/eng");
	var pathPart = curLoc.substring(0, docPos+1);
	var docPart = curLoc.substring(docPos+4);
	eval("parent.location='" + pathPart + newLanguage + docPart + "'");
}

function changeEngtoSimChiLanguage(newLanguage) {
	var curLoc = parent.location.href;
	var docPos = curLoc.indexOf("/eng");
	var pathPart = curLoc.substring(0, docPos+1);
	var docPart = curLoc.substring(docPos+4);
	eval("parent.location='" + pathPart + newLanguage + docPart + "'");
}

function changeChitoEngLanguage(newLanguage) {
	var curLoc = parent.location.href;
	var docPos = curLoc.indexOf("/chi");
	var pathPart = curLoc.substring(0, docPos+1);
	var docPart = curLoc.substring(docPos+4);
	eval("parent.location='" + pathPart + newLanguage + docPart + "'");
}

function changeChitoSimChiLanguage(newLanguage) {
	var curLoc = parent.location.href;
	var docPos = curLoc.indexOf("/chi");
	var pathPart = curLoc.substring(0, docPos+1);
	var docPart = curLoc.substring(docPos+4);
	eval("parent.location='" + pathPart + newLanguage + docPart + "'");
}

function changeSimChitoEngLanguage(newLanguage) {
	var curLoc = parent.location.href;
	var docPos = curLoc.indexOf("/simchi");
	var pathPart = curLoc.substring(0, docPos+1);
	var docPart = curLoc.substring(docPos+7);
	eval("parent.location='" + pathPart + newLanguage + docPart + "'");
}

function changeSimChitoChiLanguage(newLanguage) {
	var curLoc = parent.location.href;
	var docPos = curLoc.indexOf("/simchi");
	var pathPart = curLoc.substring(0, docPos+1);
	var docPart = curLoc.substring(docPos+7);
	eval("parent.location='" + pathPart + newLanguage + docPart + "'");
}

function emailCheck(field) {
	var valid = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz@&_-.0123456789";
	var ok = "yes";
	var temp;
	for (var i=0; i<field.value.length; i++) {
		temp = "" + field.value.substring(i, i+1);
		if (valid.indexOf(temp) == "-1") ok = "no";
	}
	hasAt = 0;
	hasDot = false;
	for (var i=0; i<field.value.length-1; i++) {
			if ((i >= 1) && (field.value.substring(i, i+1) == '@') && (field.value.substring(i+1, i+2) != '.')) // return true if it contains @ but not @.
				{
					hasAt = hasAt + 1;
				}
			if ((hasAt == 1) && (field.value.substring(i, i+1) == '.') && (i != field.value.length-1) && (field.value.substring(i+1, i+2) != '.') && (field.value.substring(i-1, i) != '.')) // return true if the pattern contains . after @ but not ..
				{
				hasDot = true;
				}
	}
	if ((hasAt == 1) && (hasDot) && (field.value.substring(field.value.length-1, field.value.length) != '.')) // return true if the pattern is *@*.*
	{
	}
	else 
	{
		ok = "no";
	}
	if (ok == "no") {
		alert("Sorry! Your email address is not valid!");
		field.focus();
		field.select();
		return false;
	}
}

function emailCheckChi(field) {
	var valid = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz@&_-.0123456789";
	var ok = "yes";
	var temp;
	for (var i=0; i<field.value.length; i++) {
		temp = "" + field.value.substring(i, i+1);
		if (valid.indexOf(temp) == "-1") ok = "no";
	}
	hasAt = 0;
	hasDot = false;
	for (var i=0; i<field.value.length-1; i++) {
			if ((i >= 1) && (field.value.substring(i, i+1) == '@') && (field.value.substring(i+1, i+2) != '.')) // return true if it contains @ but not @.
				{
					hasAt = hasAt + 1;
				}
			if ((hasAt == 1) && (field.value.substring(i, i+1) == '.') && (i != field.value.length-1) && (field.value.substring(i+1, i+2) != '.') && (field.value.substring(i-1, i) != '.')) // return true if the pattern contains . after @ but not ..
				{
				hasDot = true;
				}
	}
	if ((hasAt == 1) && (hasDot) && (field.value.substring(field.value.length-1, field.value.length) != '.')) // return true if the pattern is *@*.*
	{
	}
	else 
	{
		ok = "no";
	}
	if (ok == "no") {
		alert("筿秎岿粇");
		field.focus();
		field.select();
		return false;
	}
}

function emailCheckSimChi(field) {
	var valid = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz@&_-.0123456789";
	var ok = "yes";
	var temp;
	for (var i=0; i<field.value.length; i++) {
		temp = "" + field.value.substring(i, i+1);
		if (valid.indexOf(temp) == "-1") ok = "no";
	}
	hasAt = 0;
	hasDot = false;
	for (var i=0; i<field.value.length-1; i++) {
			if ((i >= 1) && (field.value.substring(i, i+1) == '@') && (field.value.substring(i+1, i+2) != '.')) // return true if it contains @ but not @.
				{
					hasAt = hasAt + 1;
				}
			if ((hasAt == 1) && (field.value.substring(i, i+1) == '.') && (i != field.value.length-1) && (field.value.substring(i+1, i+2) != '.') && (field.value.substring(i-1, i) != '.')) // return true if the pattern contains . after @ but not ..
				{
				hasDot = true;
				}
	}
	if ((hasAt == 1) && (hasDot) && (field.value.substring(field.value.length-1, field.value.length) != '.')) // return true if the pattern is *@*.*
	{
	}
	else 
	{
		ok = "no";
	}
	if (ok == "no") {
		alert("电邮地址错误！");
		field.focus();
		field.select();
		return false;
	}
}
//-->