<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <style type="text/css"> td{text-align:center;} th{text-align:center;} </style>
<script type="text/javascript"> function deleteAll(){ var allValue=""; var count=0; for(var i=0;i <document.all.id.length;i++){
while(count==document.all.id.length){ var confirm=confirm("Are you sure to delete all Contacts?"); if(confirm=="true") window.open("/MiniContact/delete?id=all"); break; } count++; } var confirm=confirm("Are you sure to delete these Contacts?"); if(comfirm=="true") window.open("/MiniContact/delete?id="+allValue); }
function delete(name){
var ok=confirm("Delete contact"+name); if(ok==false) return false; else return true; }
function checkAll(){ for(var i=0;i <document.all.id.length;i++){ document.all.id[i].checked=true; } } </script>