// JavaScript Document
<!-- 
if (window.Event) 
document.captureEvents(Event.MOUSEUP); 

function nocontextmenu() 
{ 
event.cancelBubble = true 
event.returnValue = false; 

return false; 
} 

function norightclick(e) 
{ 
if (window.Event) 
{ 
if (e.which == 2 || e.which == 3) 
return false; 
} 
else 
if (event.button == 2 || event.button == 3) 
{ 
event.cancelBubble = true 
event.returnValue = false; 
return false; 
} 

} 
document.oncontextmenu = nocontextmenu; //对ie5.0以上 
document.onmousedown = norightclick; //对其它浏览器 
//--> 

function $id(id){
return document.getElementById(id);
}

function showchild(id){
$id(id).style.display="block";

}
function hiddenchild(id){ 
$id(id).style.display="none";
}
function tab(cout,fistcss,zcss,btidn,nridn,btid,nrid,href,hrefid,b){
	var h=href.split('|');
for(i=1;i<=cout;i++){
	$id(btidn+i).className=zcss;
	$id(nridn+i).style.display='none';
}
$id(btid).className=fistcss;
$id(nrid).style.display='block';
$id(hrefid).href=h[b];
}
function jqueryAjaxLoad(type,url,data,success,divid,msg){
	$.ajax({
         type:type,
		 url:url,
		 data:'m='+Math.random()+'&'+data,
		 dataType: "html",
		 beforeSend:function(XMLHttpRequest){//加载请求中
		 if(divid !='')
		 {
		 $("#"+divid+"").append("<span id=\"loading-log\">"+msg+"</span>");	
		 }
		 },
		 success:success,
		 complete:function(){//加载结束
		  if(divid !='')
		 {
		 $("#loading-log").remove(); 	
		 }
		 },
		 error:function(){
		// alert("error!")
		 } 
		 })
}

