#head>
#script>
/*function time(){
var d=new Date();
a=d.getHours();
b=d.getMinutes();
c=d.getSeconds();
b=check(b);
c=check(c);
document.getElementById('txt1').innerHTML=a+":"+b+":"+c;
document.getElementById('txt2').innerHTML=a+":"+b+":"+c;
document.getElementById('txt').innerHTML=a+":"+b+":"+c;
setTimeout("time()",500);
function check(i){
if(i#10){
i="0"+i;
}
return i;
}
}*/
function cek(){
kodepos=frm.txtKodePos.Value;
if(isNaN(kodepos)){
alert("isi dengan angka");
}
else if(kodepos.length!=5){
alert("isi dengan 5 digit angka");
}
else{
document.frm.submit();
}
}
#/script>
#/head>
#!--#body onload="time()">-->
#body>
#form name="frm">
#table align="center" width="500" border="1">
#!--#tr>
#td align="center" id='txt1'> #/td>
#td align="center" id='txt2'> #/td>
#td align="center" id='txt'> #/td>
#/tr>-->
#tr>
#td align="center" >Nama#input type="text" name="txtNama"/>#/td>
#td align="center" >Kode Pos#input type="text" name="txtKodePos"/>#/td>
#td align="center" >#input type="button" onClick="cek()" value="Kirim"/>#input type="reset" value="Batal"/>#/td>
#/tr>
#/table>
#/form>
#/body>