
var popupLotStatus = 0;
var popupBktStatus = 0;
var popupDatStatus = 0;
var popupRegStatus = 0;
var popupLogStatus = 0;
var lotStsAdj = 'AD';
var lotStsAsg = 'AS';
var auctStsO = 'O';
var auctStsP = 'P';
var pujP = 'P';
var popuptitle;
var lots;
var isSearch;
var error = 0;
var puja;
var id;
var buttons = {};

function initvariables() {
	globalwebstatus            = '';
	globalpopuptitle           = '';
	globalactualauction        = '';
	globalauctionstatus        = '';
	globalauctionname          = '';
	globalbiddingcorrect       = '';
	globalbiddingpending       = '';
	globallots                 = '';
	globalissearch             = '';
	globalsearchkey            = '';
	globalsearchoption         = '';
	globalinfo                 = 0;
	globalinfotxt              = '';
	globalerror                = 0;
	globalerrortxt             = '';
	globalerrortrylater        = '';
	globalforbid               = '';
	globalnobids               = '';
	globaladdbid               = '';
	globalloading              = '';
	globallookingforlot        = '';
	globaldeletebid            = '';
	globaldelbid               = '';
	globalsendbids             = '';
	globalhasidentity          = 0;
	globalyourbid              = '';
	globalavailable            = '';
	globalbid                  = '';
	globalbidpending           = '';
	globalbidconfirm           = '';
	globalbuy                  = '';
	globaldirectory            = '';
	globaldirectoryindex       = '';
	globalcancelbuttontxt      = '';
	globalokbuttontxt          = '';
	globalconfirmbidremove     = '';
	globalconfirmbiddingremove = '';
}

function loadvariables() {
	popuptitle           = globalpopuptitle;
	webstatus            = globalwebstatus;
	actualauction        = globalactualauction;
	auctionstatus        = globalauctionstatus;
	auctionname          = globalauctionname;
	biddingcorrect       = globalbiddingcorrect;
	biddingpending       = globalbiddingpending;
	lots                 = globallots;
	isSearch             = globalissearch;
	searchkey            = globalsearchkey;
	searchoption         = globalsearchoption;
	error                = globalerror;
	errortxt             = globalerrortxt;
	errortrylater        = globalerrortrylater;
	forbid               = globalforbid;
	nobids               = globalnobids;
	info                 = globalinfo;
	infotxt              = globalinfotxt;
	addbid               = globaladdbid;
	loading              = globalloading;
	lookingforlot        = globallookingforlot;
	deletebid            = globaldeletebid;
	delbid               = globaldelbid;
	sendbids             = globalsendbids;
	hasidentity          = globalhasidentity;
	yourbid              = globalyourbid;
	available            = globalavailable;
	bid                  = globalbid;
	bidpending           = globalbidpending;
	bidconfirm           = globalbidconfirm;
	buy                  = globalbuy;
	directory            = globaldirectory;
	directoryindex       = globaldirectoryindex;
	cancelbuttontxt      = globalcancelbuttontxt;
	okbuttontxt          = globalokbuttontxt;
	confirmbidremove     = globalconfirmbidremove;
	confirmbiddingremove = globalconfirmbiddingremove;

	buttons[okbuttontxt] = true;
	buttons[cancelbuttontxt] = false;

	$("#search_key").attr("value",searchkey); 
	$("#search_option").attr("value",searchoption); 
}

