var userType = 0; var curStatus = 0; curStatus = 1; var imgArr = ["step2_01.gif","step2_02.gif","step2_03.gif","step2_04.gif","step2_05.gif"]; switch(curStatus){ case 0: imgArr[0] = "step1_01.gif"; break; case 1: imgArr[1] = "step1_02.gif"; break; case 16: case 18: imgArr[2] = "step1_03.gif"; break; case 19: imgArr[3] = "step1_04.gif"; break; default: imgArr[4] = "step1_05.gif"; } document.write("");