function alertNotice(){
	var diag = new Dialog();
	diag.URL = "javascript:void(document.write(\'亲爱的鸽友！由于何坚先生出差到国外办事，大概4月初才能回国。这段时间如有关于拍卖网的相关事务，请至电徐先生：18977960717，如有不便之处，敬请凉解！谢谢！\'))";
	diag.Height = 100;
	diag.show();
}
function Jumping(obj){
	window.location = "AuctionList.shtml?pageSize="+obj.value;
}
function myFixedOrderlist(){
	var diag = new Dialog();
	diag.Width = 700;
	diag.Height = 200;
	diag.Title = "我的定价鸽";
	diag.URL = "/bespa/FixOrderList.shtml";
	diag.show();
}
function myAuctionOrderlist(){
	var diag = new Dialog();
	diag.Width = 700;
	diag.Height = 500;
	diag.Title = "我的拍卖鸽";
	diag.URL = "/bespa/MyOrderList.shtml";
	diag.show();
}
function viewMoneyState(userid){
 $.get("/bespa/UserManager.shtml?action=viewSecurity&id="+userid,function(data){
   Dialog.alert(data)
 });
}
function checkFixedpriceCN(){
	var loginMark = document.fixedTop.isLogin;
	if(loginMark.value == "false"){
		Dialog.alert("对不起！请您先登录系统后才可以进行购买.");
		return false;
	}else{
		Dialog.confirm('您确定要购买吗?',function(){
		document.fixedTop.action="/bespa/BusinessManager.shtml?action=fixedprice";
		document.fixedTop.submit();
	});
	}
}
function checkFixedpriceCNBottom(){
	var loginMark = document.fixedBottom.isLogin;
	if(loginMark.value == "false"){
		Dialog.alert("对不起！请您先登录系统后才可以进行购买.");
		return false;
	}else{
		Dialog.confirm('您确定要购买吗?',function(){
		document.fixedBottom.action="/bespa/BusinessManager.shtml?action=fixedprice";
		document.fixedBottom.submit();
	});
	}
}

function checkAuctionBottom(){
	var obj = document.userAuctionBottom.myPayBottom;
	var loginMark = document.userAuctionBottom.isLogin;

	if(loginMark.value == "false"){
		alert("对不起！请您先登录系统才可以进行拍卖.");
		return false;
	}
	if(obj.value == ""){
		alert("出价不能为空，请以整数填写。(例:1000，5000)");
		obj.focus();
		return false;
	}
	if(checkNumber(obj.value)){
		alert("出价只能为数字类型，请输入数字(例:100，500)");
		obj.focus();
		return false;
	}
	if(parseInt(obj.value)<=parseInt(document.userAuctionBottom.currPric.value)){
		alert("对不起！您的出价不能低于或等于当前价，请重新填写.");
		obj.value = "";
		return false;
	}
	Dialog.confirm('警告：您确定要出价吗？',function(){
		document.userAuctionBottom.action="/bespa/BusinessManager.shtml?action=auction";
		document.userAuctionBottom.submit();
		Dialog.alertNoneButton("系统正在处理，请稍候...");
	});
}
function checkNumber(input)
{
	//判断小数：/^[0-9]+.?[0-9]*$/
     var re = /^[1-9]+[0-9]*]*$/;   //判断字符串是否为数字     //判断正整数 /^[1-9]+[0-9]*]*$/   
     if (!re.test(input)){
        return true;
     }
}
function showMessage(v){
	var str = '<div id="bg"></div><div id="info"><div id="center"><strong>Information</strong>';
	str+='<p style="font-size:12pt">The system is processing, please wait... </p>';
	str+='</div></div>';

	 window.scrollTo(0,0);
	 var bo = document.getElementsByTagName('body')[0];
	 var ht = document.getElementsByTagName('html')[0];
	 var boht = document.getElementById('alert');
	 boht.innerHTML = '';
	 bo.style.height='auto';
	 bo.style.overflow='auto';
	 ht.style.height='auto'; 
	 if(v == 1){
	  bo.style.height='100%';
	  bo.style.overflow='hidden';
	  ht.style.height='100%';

	  boht.style.marginTop = "40px";
	  boht.style.marginLeft = "60px";
	  boht.innerHTML = str;
	 }
}
