<!---
function ytrim(tval){if(tval.length<1){return"";}tval=yrtrim(tval);tval=yltrim(tval);if(tval==""){return "";}else{return tval;}}
function yrtrim(tv){var w_space=String.fromCharCode(32);var v_length=tv.length;var strTmp="";if(v_length<0){return"";}var iTmp=v_length-1;while(iTmp>-1){if(tv.charAt(iTmp)==w_space){}else{strTmp=tv.substring(0,iTmp+1);break;}iTmp=iTmp-1;}return strTmp;}
function yltrim(tv){var w_space=String.fromCharCode(32);if(v_length<1){return"";}var v_length=tv.length;var strTmp="";var iTmp=0;while(iTmp<v_length){if(tv.charAt(iTmp)==w_space){}else{strTmp=tv.substring(iTmp,v_length);break;}iTmp=iTmp+1;}return strTmp;}
function verifyTrURL(){var urlV=ytrim(document.frmTrURL.trurl.value);if(urlV.length<8){alert("Please enter a full Web address. For example, http://fr.yahoo.com");return false;}
var nDots=0;for(var i=0;i<urlV.length;++i){var tmp=urlV.substring(i,i+1);
if(tmp==" "||tmp=="'"||tmp=='"'||tmp=="`"||tmp=="<"||tmp==">"){alert("Please enter a full Web address. For example, http://fr.yahoo.com.\nEntered URL contains invalid characters such as ', \", `, <, > and space.");return false;}if(tmp=='.')++nDots;
if(tmp=='.' && i==urlV.length-1){alert("Please enter a full Web address. For example, http://fr.yahoo.com.\nEntered URL is missing top-level domain. '.com' is an example of a top-level domain.");return false;}}
if(nDots==0){alert("Please enter a full Web address. For example, http://fr.yahoo.com.\nEntered URL is missing domain. '.yahoo.com' is an example of a domain.");return false;}
return true;}
//--->