var ocObj = null;
function openCloseInit(oc) {
	if(! ocObj) {
		ocObj = new OpenClose();
	}
	if(oc) {
	    document.getElementById("demo_open").style.display="block";
	    document.getElementById("demo_close").style.display="none";
	} else {
	    document.getElementById("demo_open").style.display="none";
	    document.getElementById("demo_close").style.display="block";
	}
	ocObj.sendData(oc);
}


function OpenClose() {}
OpenClose.prototype = new DXMLHttpRequestShell();
OpenClose.contructor = new OpenClose;

OpenClose.prototype.onLoad = function () {
}

OpenClose.prototype.sendData = function (oc) {
	this.init();
	try {
		if(oc) {
			this.fastPostUrl(BASE_URL + "openclose.html", "open=on");
		} else {
			this.fastPostUrl(BASE_URL + "openclose.html", "open=off");
		}
	} catch (e) {
		throw e;
	}
	
}

