function isValidPassword(s)
{
var tmpString = s;
var flag = 0;
var character = "";
var validString = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.@";
if(tmpString.length == 0)
{
window.location.href = "ComInfoDisplay.jsp?ERROR_TYPE=2"+"&ERROR_ID=07";
return false;
}
else
{
for (var i = 0; i < tmpString.length; i++)
{
character=tmpString.substring(i,i+1);
if(validString.indexOf(character) == -1)
{
flag++;
}
}
if (flag!=0)
{
window.location.href = "ComInfoDisplay.jsp?ERROR_TYPE=2"+"&ERROR_ID=06";
return false;
}
else
{
return true;
}
}
}
//add by fengyanan60019624 AB4D02824 2007-01-11 begin
//妫€鏌ョ敤鎴穒d杈撳叆鏄惁鏈夋晥
function isValidUser(s)
{
var tmpString = s;
var flag = 0;
var character = "";
//var validString = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.@_-";
// modify by z00187860 for US.IPTVV1R3C56Laua01.21.001.MEM.001 begin
//娑夊強鍒扮敤鎴峰笎鍙稶serID鐨勬牎楠屽彧闄愬埗% ' | # & 绌烘牸 $ "\ + `杩?1涓瓧绗︼紝鑰屼笉鍋氬叾浠栭檺鍒?
var validString = /^[%|#&\s'$`+\\"]*$/;
if(tmpString.length == 0)
{
window.location.href = "ComInfoDisplay.jsp?ERROR_TYPE=2"+"&ERROR_ID=07";
return false;
}
else
{
if(!validString.test(tmpString))
{
return true;
}
else
{
window.location.href = "ComInfoDisplay.jsp?ERROR_TYPE=2"+"&ERROR_ID=10";
return false;
}
}
// modify by z00187860 for US.IPTVV1R3C56Laua01.21.001.MEM.001 end
}