function changeLanguage(link){

    sitePrefix = "";
    regPattern = /^(?:\w+:\/\/)?[\d\w.:]+\/(.*)$/i;
	regPattern.exec(document.location);
	if (RegExp.$1){
		sitePrefix = RegExp.$1;
	}
    
	link.href+=sitePrefix;

}

function setStartPage(obj, siteName)
{
    obj.style.behavior='url(#default#homepage)';
    obj.setHomePage(siteName);

    return false;
}

function addToFavorite(description)
{
    window.external.AddFavorite(location.href, description);
}

function GoToLinkBlank(URL)
{	
	window.open(URL);
	//, 'patternBlank'
}

function go_lang(go){
	location.href=go;
}

function echoGoEnglish(a,b){
	document.write('<a href="javascript: go_lang(\'http://'+a+b+'\');">English</a>');
}

function email (login, sc)
{
        var serv = new Array;
	serv[0] = "asia.ru";
	serv[1] = "taiwan.ru";
	serv[2] = "hotmail.com";
	serv[3] = "taiwan.ru";
	serv[4] = "china.ru";
	eml = login +  "@" + serv[sc];
	return eml;
}
								
function mylo (login, sc)
{
	document.write (email(login, sc));
}
								
function namylo (login, sc, sub)
{
	eml = "mailto:" + email(login, sc);
	if (sub != "") eml += "?subject=" + sub;
	window.location.href = eml;
}
