var minoer_count = 0;
var maxoer_count = 0;
var maxoer_arrayid = "";
var loadintimes1,loadintimes2;
var errwindowsizes;
var usermess_closethispage = true,usermess_closethispage1 = false;
//
//弹出操作窗口,不过先要判断是否有信息提示窗口,如果有则先关闭信息提示窗口
//zindexerror
//操作窗口需要加上滚动窗口的高度
function ewindow_text(winhtml,winsize,closeclass,ipath){
var ewdiv,ewsize,nwsize;
zindextwindow = at.d("iw_windowid");
ewsize = Array(document.documentElement.clientWidth,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.scrollTop,window.screen.availHeight);
errwindow_close(zindexerror);
if (zindextwindow){
at.zindexcloseclear(zindextwindow);
}
if (errwindowtoptime){
clearTimeout(errwindowtoptime);
}
if (parseInt(ewsize[2]) < parseInt(ewsize[4])){
ewsize[2] = ewsize[4];
}
nwsize = Array(parseInt((ewsize[0] - winsize[0])/2),parseInt((ewsize[1] - winsize[1])/2) + ewsize[3]);
ewdiv = "
";
ewdiv += "";
ewdiv += "
" + winhtml + "
";
if (closeclass !== 1){
ewdiv += "
";
}
ewdiv += "
";
zindextwindow = at.addobject("iw_windowid",ewdiv,"","","","","");
errwindowsizes = winsize[1];
ewindow_srtop(winsize[1],ewsize[1]);
}
//
//弹出窗口始终在页面中
function ewindow_srtop(objheight,winheight){
var wintop,windiv;
windiv = at.d("iw_windowall");
wintop = document.documentElement.scrollTop;
if (!winheight)winheight = document.documentElement.clientHeight;
windiv.style.top = parseInt(parseInt((winheight - objheight)/2) + wintop) + "px";
errwindowtoptime = window.setTimeout(function(){ewindow_srtop(objheight,winheight)},10);
}
//
//拖动滚动条时禁用
function mobiledivtopnot(obj){
if (errwindowtoptime){
clearTimeout(errwindowtoptime);
}
obj.onmouseup = function (){
ewindow_srtop(errwindowsizes);
}
}
//
//用户登陆框
function loading_userlogin(path){
var ndiv,topdiv,indiv;
window.setTimeout(
function(){
xmlposthtml = at.xmlhttps(((path)?path:"") + "inc/user/userload.php?type=loginuser&path=" + path + "",true,"user=true");
nsyhtml = function (){
ndiv = at.addobject("",at.loadajax_xml(xmlposthtml),"","","","","none");
topdiv = Array(at.d("load_usertopindex"),at.d("load_usershopindex"));
indiv = Array(at.d("usertopindex"),at.d("usershopindex"));
if (topdiv[0] && indiv[0]){
indiv[0].innerHTML = topdiv[0].innerHTML;
}
if (topdiv[1] && indiv[1]){
indiv[1].innerHTML = topdiv[1].innerHTML;
}
at.zindexcloseclear(ndiv,1);
//
//用户的竞拍数据更新
//可整合到用户在线统计中
//window.setTimeout(function(){loading_userauc(((path)?path:""));},500);
}
at.xmlposts("nsyhtml()");
}
,100);
}
//
//弹出用户登陆窗口,如果已经弹出窗口则直接更新窗口的内容
function user_loadwin(loghtml,pagenames,objectid,ipath){
var userhtml;
//如果有弹出的窗口则先关闭弹出窗口
ewindow_textclose();
at.loadjavacss(((!ipath)?"../":ipath) + "inc/js/reglogin.js","js");
//打开登陆的窗口
if (!loghtml || loghtml == ""){
xmlposthtml = at.xmlhttps(((!ipath)?"../":ipath) + "inc/user/userload.php?type=loginwindow&id=" + objectid,true,"user=true&pagenames=" + e__c(pagenames));
nsyhtml = function (){
ewindow_text(xmlposthtml,Array(560,450));
evalscript(xmlposthtml,1);
}
at.xmlposts("nsyhtml()");
}else{
ewindow_text(loghtml,Array(560,450));
}
}
//
//取更多的值(显示更多内容)
//urltextin:取值的类型(格式在upload.php文件中查看)
//divname:赋值的div对象
function openalltexts(obj,urltextin,urlclass,divname,zoomclass,ipath){
var divs,ndiv,hhtml,sinput;
divs = at.d(divname);
if (divs){
xmlposthtml = at.xmlhttps(((!ipath)?"../":ipath) + "inc/const.load.php?type=openalltext_list",true,"urltextin=" + (urltextin + "," + urlclass + "," + divname + "," + zoomclass));
nsyhtml = function (){
if (urlclass == 0){
ndiv = at.addobject("",xmlposthtml,"","","","","none");
sinput = at.d(divname + "_input");
if (sinput){
hhtml = sinput.value;
}
at.zindexcloseclear(ndiv);
}else{
hhtml = xmlposthtml;
}
divs.innerHTML = hhtml;
obj.onclick = "";
obj.onclick = function (){
openalltexts(this,urltextin,urlclass,divname,(zoomclass == 0?1:0),ipath);
}
}
at.xmlposts("nsyhtml()");
}
}
//
//加载高级搜索信息
function loading_searchall(ipath){
var searchclass,advanced_div;
searchclass = at.d("searchclass");
advanced_div = at.d("advanced_div");
if (advanced_div){
xmlposthtml = at.xmlhttps(((!ipath)?"../":ipath) + "inc/const.load.php?type=searchall&classtype=" + searchclass.value,true,"user=true");
nsyhtml = function (){
advanced_div.innerHTML = xmlposthtml;
evalscript(xmlposthtml,1);
}
at.xmlposts("nsyhtml()");
}
}
//
//执行ajax返回数据中的script代码
//ajaxhtml:返回的数据
//evalclass:留空为执行(