function bookmarkit()
{
	window.external.addFavorite('http://www.dencen.com','上海迪测')
}
function sethome(){
	this.style.behavior='url(#default#homepage)';
	this.setHomePage('http://www.dencen.com');
	return false;
}
function removeRow(src)
   {
    var oRow = src.parentElement.parentElement;  //获取当前事件的父节点
    if(confirm("确定要删除吗?"))
    oRow.parentElement.deleteRow(oRow.rowIndex);  //删除当前列
   }

function addrow(tableid,hiddenid,checkboxid){	
	var sequence=null;
	jQuery.getJSON("sequence.asp", function(data){
		if(data)
			sequence=data;	
	});
	alert(sequence);
	if(!sequence){return false};
	var lastrow=null;
	for(var j=1;j<document.getElementById(tableid).rows.length;j++){
		document.getElementById(tableid).rows[j].style.backgroundColor = 'white'; 
		lastrow=document.getElementById(tableid).rows[j];
	}
    var newRow = document.all(tableid).insertRow(-1); 	;
	newRow.style.background="#CECECE";  
	$(newRow).html()=lastrow.clone();  	
    return false;
}
function checkallselect(src,checkboxname){
	try{
		if(document.getElementsByName(checkboxname).length){
			//不需要判断对象是否为数组的情况，只有一个也可以作为数组处理
			for(var i=0;i<document.getElementsByName(checkboxname).length;i++){
				document.getElementsByName(checkboxname)[i].checked=src.checked;
			}
		}
	}catch(error){}
   }
function checkdel(listform,action)
   {
    if(confirm("确定要删除吗? ")){
		eval("document."+listform).action=action;
		eval("document."+listform).submit();
	}
   }  
function hideinfo(infodiv){
	if(confirm("确定要关闭本窗口吗？")){
		yucxfToggleTags_show(infodiv);
		$("."+infodiv).css({
		"display":"none"
		});
	}
	return false;
   }
