	function CheckAll(tocheck) {
		var length = document.listform.elements.length;
		for (var i=0; i<length; i++) { 
			if (document.listform.elements[i].name.indexOf("check") != -1) { 
				document.listform.elements[i].checked = tocheck; 
			}
		}
	}
	function check_action(string) {		
		var enable=0;
		var length = document.listform.elements.length;
		var idstr='';
		for (var x=0; x<length; x++) {
			if (document.listform.elements[x].name.indexOf("check") != -1) {
				if (document.listform.elements[x].checked==true)
					enable=1;
			}  
		}
		if(enable==1) {
			if(string=='delete' || string=='agree' || string=='top' || string=='vip') {
				for (var i=0; i<length-1; i++) { 
					if (document.listform.elements[i].checked){
						if(idstr=='')
							idstr=document.listform.elements[i].value;
						else
							idstr=idstr+','+document.listform.elements[i].value;
					}
				}
				switch (string)
				{
					case 'delete':
						document.listform.checkidstr.value=idstr;
						if (confirm('你确定要删除选中的记录吗？'))
							document.listform.submit();
						break;
					case 'agree':
						document.listform.agreeidstr.value=idstr;
						if (confirm('你确定要审批通过这些记录吗？'))
							document.listform.submit();
						break;
					case 'top':
						document.listform.agreeidstr.value=idstr;
						if (confirm('你确定要置顶这些记录吗？'))
							document.listform.submit();
						break;
					case 'vip':
						document.listform.agreeidstr.value=idstr;
						if (confirm('你确定要审批这些记录为会员吗？'))
							document.listform.submit();
						break;
				
				}
			}
			
		}
	}
	function pagego(gopagenum){
		document.listform.page.value=gopagenum;
		document.listform.submit();
	}