function button(txt,act,use){
	document.write('<td width="');
	if (txt.length==4) document.write('120'); else if (txt.length>2) document.write('100'); else document.write('80');
	document.write('">');	
	if(use == null){
	document.write('<div onclick='+act+' ');
	document.write('style="cursor:hand;color: #345456;');
	document.write('onmousedown="this.style.border=\'2 inset #ffffff\';" ');
	document.write('onmouseover="this.style.border=\'1 outset #ffffff\';" ');	
	document.write('onmouseout="this.style.border=\'0 none black\';">');
	}
	document.write('<table><tr><td><img src="/ipps/jsp/image/menu/');
	switch (txt){
	case 'Ìí¼Ó':  document.write('new');break;
	case 'É¾³ý':  document.write('del');break;
	case 'ÐÞ¸Ä':  document.write('modi');break;
	case 'ä¯ÀÀ':  document.write('browse');break;
	case '²éÑ¯':  document.write('query');break;
	case 'ÏÂÔØ':  document.write('xiazai');break;
	default:      document.write('first');
	}
	if(use == null)           
		document.write('.gif" width="16" height="16"></td><td valign="bottom"><font color="#ffffff">');
	else
		document.write('.gif" width="16" height="16"></td><td valign="bottom"><font color="#ffffff">');
	document.write(txt);
	document.write('</font></td></tr></table>');
	document.write('</div>');
	document.write('</td>');
}
function selectrow(i){
	if(i>0){
	if(TablePage.rows.length-1 < thisrow ) thisrow = TablePage.rows.length-1;
	
	for(j=1;j<TablePage.rows[thisrow].cells.length;j++){
		TablePage.rows[thisrow].cells[j].style.backgroundColor="#ffffff";
		TablePage.rows[thisrow].cells[j].style.color="#000000";
	}
	TablePage.rows[thisrow].cells[0].innerHTML="&nbsp;";
	for(j=1;j<TablePage.rows[i].cells.length;j++){
		TablePage.rows[i].cells[j].style.backgroundColor="#666666";
		TablePage.rows[i].cells[j].style.color="#FFFFFF";
	}
	TablePage.rows[i].cells[0].innerHTML="<font size=-2>&#9658;</font>";
	thisrow=i;
	for (k=0;k<TablePage.rows.length;k++) {
		TablePage.rows[k].cells[1].style.display='None';
	}
	}	
}
