function closeErrors(){ return true;}   
window.onerror=closeErrors;
function Ajax_uno(obj,lei,uid){ 
   $(obj).html("loding...");
   $.get("/F_CJ/Userdate.asp?lei="+lei+"&uid="+uid+"", function(data){$(obj).html(unescape(data));});
}
jQuery.Jdj = function(mid,id) {    
  $("#dianji").html("loding..");
  $.get("/f_js/Page.asp?LEI=dianji&MID="+mid+"&ID="+id+"", function(data){$("#dianji").html(unescape(data));});
};
jQuery.Jxq = function() {    
  $("#xqbox").html("loding..");
  $.get("/F_CJ/Userdate.asp?lei=inxq", function(data){$("#xqbox").html(unescape(data));});
};
jQuery.JPage = function(obj,lei,mid,cid,id,uid) {    
  //$(obj).html("loding..");
  $.get("/f_js/Page.asp?LEI="+lei+"&MID="+mid+"&CID="+cid+"&ID="+id+"&UID="+uid+"", function(data){$(obj).html(unescape(data));});
};

$(document).ready(function (){
	$("span#tel").html("客服QQ：1208181792  邮 箱：typx110@163.com ");
	$("#linkstr").html("友情链接要求");
	//$("#dianji").html("友情链接要求");
});

function AutoScroll(obj){ 
  $(obj).find("ul:first").animate({ 
  marginTop:"-25px" 
  },500,function(){ 
  $(this).css({marginTop:"0px"}).find("li:first").appendTo(this); 
  }); 
}
//表单验证
function formck() 
{
	var strFileName=document.form.uname.value;
	if (strFileName=="")
	{
    	alert("请输入用户名！");
		document.form.uname.focus();
    	return false;
  	}
	var strFileName=document.form.upw.value;
	if (strFileName=="")
	{
    	alert("请输入密码！");
		document.form.upw.focus();
    	return false;
  	}
}
function ppshow(id,uid)
{
	$(id).powerFloat({
        offsets: {x:-5,y:-65},
		position: "4-1",
		target: "/F_js/Page.asp?LEI=pinp&id="+uid+"",
		targetMode: "ajax",
		showDelay:100,
		container: $("#Pinpai"),
		edgeAdjust:false	
	});	
}
//更改字体大小 Begin =============================================
function fontZoomA(){
    document.getElementById('pagenr').style.fontSize='';
	document.getElementById('pagenr').style.lineHeight='';
}
function fontZoomB(){
    document.getElementById('pagenr').style.fontSize='18pt';
	document.getElementById('pagenr').style.lineHeight='28pt';
}

//图片按比例缩放
function DrawImage(ImgD,iwidth,iheight){
var flag=false;
//参数(图片,允许的宽度,允许的高度)
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width/image.height>= iwidth/iheight){
if(image.width>iwidth){ 
ImgD.width=iwidth;
ImgD.height=(image.height*iwidth)/image.width;
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
//ImgD.alt="原尺寸："+image.width+"×"+image.height;
}
else{
	if(image.height>iheight){ 
	ImgD.height=iheight;
	ImgD.width=(image.width*iheight)/image.height; 
	}else{
	ImgD.width=image.width; 
	ImgD.height=image.height;
	}
//ImgD.alt=image.width+"×"+image.height;
}}}
