var userList =[
//You can add and edit all login account here
//[Login Name, Password, Page to Go], 
['edwardlam', '123456','user1.html'], 
['user2', 'pw2','user2.html'], //Remember there is comma! 
['user3', 'pw3','user3.html'],
['jeffrey', '123456','client_login/sfoc/jeffrey.html'],
['minwa', 'manman','client_login/minwa/minwa.htm'],
['hkssa2007', 'carina','client_login/hkssa07/hkssa07.htm'],
['aig2007', 'gordon','client_login/aig2007/macau2007_aig.htm'],
['hip', 'joe','client_login/hip_holiday/hip_holiday.htm'],
['jshk', 'tea','client_login/jshk_tea/jshk_tea.htm'],
['sfoc', 'amelia','client_login/ssep/sfoc_ssep.htm'],
['avery', 'rosita','client_login/avery_rfid/avery.htm'],
['xinhua', 'xinhua','client_login/xinhua/index.html'],
['xrg', 'xrg','client_login/xrg/xrg_bro.htm'],
['drwu', 'stand','client_login/dr_wu/dr_wu.htm'],
['locus', 'locus','client_login/locus/locus.htm'],
['buddha', 'buddha','client_login/buddha/buddha.htm'],
['grandtag', 'paperbag','client_login/grandtag/grandtag_bag.htm'],
['xinao', 'stationery','client_login/xinao/xinao_stationery.htm'],
['wharf', '1234','client_login/wharf/wharf.htm'],
['aig', 'nicky','client_login/aig_result/aig.htm'],
['xinhua', 'xmas','client_login/xinhua_xmas/xinhua_xmas.htm'],
['minwa', '2008','client_login/minwa2008/minwa_gen_cat2008.htm'],
['xinao', 'xinao','client_login/xinao_siuping/xinao.htm'],
['sfoc', 'ar07','client_login/sfoc_ar07/sfoc_ar07.htm'],
['minwa', 'cd08','client_login/minwa_cd08/index.htm'],
['fos', 'winnie','client_login/festival_of_sport_08/fos08.htm'],
['elite', 'clinic','client_login/elite_clinic/elite_clinic.htm'],
['mcohl', '2007','client_login/mcohl/mcohl_ar.htm'],
['ssa07', 'carina','client_login/hkssa07_sou/hkssa07_sou.htm'],
['pvchk', 'pvchk','client_login/pvchk/pvchk.htm'],
['hksme', '2008','client_login/hksme2008/hksme2008.htm'],
['hkecic', 'alice','client_login/hkecic/hkecic.htm'],
['pvchk', 'news','client_login/pvchk_news/pvchk_news.htm'],
['basiclaw', '15','client_login/basiclaw/basiclaw.htm'],
['lawrence', '123','client_login/touchup/touchup.htm'],
['grandtag', 'invite','client_login/grandtag_invite/grandtag_invest_champion.htm'],
['dap', 'dap','client_login/dap/dap.htm'],
['kbb', 'leo','client_login/kbb/kbb.htm'],
['dfs', 'coach','client_login/dfs/dfs_coach.htm'],
['atz', 'atz','client_login/atz/atz.htm'],
['hkecic', 'hkecic','client_login/hkecic/hkecic_2.htm'],
['citysuper', 'citysuper','client_login/citysuper/citysuper.htm'],
['minwa', 'wing','client_login/minwa09/minwa09.htm']
['minwa', 'belle','client_login/minwa09_cd/index.htm']
['polyu', 'prospectus','client_login/polyu_prospectus/polyu_p.htm']
];


function validate(nameField,passwordField)
{   
    var found = false;
    for(var i=0;i<userList.length;i++)
   {
           if(nameField ==userList[i][0] && passwordField==userList[i][1])
           {	
			location.href=userList[i][2];	
			found = true;					 
           }          
    }
    if(!found)
        alert("Sorry we cannot find your login account! Please try to login again!");
}

