Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <input name="firstNameIn" type="text" id="firstNameIn" style='width:170px;color:gray'
- defaultValue="John" value="John" onfocus=DeWaterMark(me) onblur=WaterMark(me) onkeyup='call updatePrev(me,prev1.firstName)' />
- sub updatePrev(txt,prev)
- prev.innerhtml = txt.value
- if len(firstNameIn.value) > 0 and firstNameIn.style.color <> "gray" _
- and len(lastNameIn.value) > 0 and lastNameIn.style.color <> "gray" _
- and len(positionIn.value) > 0 and positionIn.style.color <> "gray" _
- and len(departmentIn.value) > 0 and departmentIn.style.color <> "gray" _
- and len(phone1In.value) > 2 and phone1In.style.color <> "gray" _
- and len(phone2In.value) > 2 and phone2In.style.color <> "gray" _
- and len(phone3In.value) > 3 and phone3In.style.color <> "gray" _
- then
- apply.disabled=false
- copy.disabled=false
- else
- apply.disabled=true
- copy.disabled=true
- end if
- end sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement