


function updateThread(){
	var jSonRequest = new Json.Remote(rpath+"community/user.php").send({
				session_id:	SID,
				action:'call'
			});
}



window.addEvent('domready', function(){
	cdUser = new User(SID);
	cdUser.checkLogin();
	updateThread();
	setInterval('updateThread()',RLT4);
});


function setButton(btnObj, type){
	if(document.all){
		btnObj.setAttribute('type',type);
	}else{
		btnObj.type = type;
	}
	return btnObj;
}

function setFormType(fObj, type){
	if(document.all){
		fObj.setAttribute('type',type);
	}else{
		fObj.type = type;
	}
	return fObj;
}



function dragContainerInit(el){
	var dragContainerOptions = {
	
		handle: el, 
		
		onStart: function(){
			el.parentNode.style.zIndex = 111111;
		}.bind(this),
		 
		onComplete: function(){
		
		}.bind(this)
	};

	el.style.cursor = 'move';
	
el.parentNode.makeDraggable(dragContainerOptions);

}
