/* ibotajax :: container (div id), [name_of_script].php, [name_of_img].gif */ 
function ibotajax(container, script, img) {
	new Ajax.Request(script+".php",
	{ 
		method:'post', 
		postBody:'ibot='+$F('ibot_var'),
		onCreate:function(){$(container).innerHTML = '<center><div style="padding:10px;"><img src="'+img+'.gif" width="570" height="48"></div></center>';},
		onComplete:function(req){$(container).innerHTML = req.responseText;}
	});
}

function ibotvote(id, container, vote, script) {
	new Ajax.Request(script+".php",
	{ 
		method:'post', 
		postBody:'ID='+id+'&vote='+vote,
		onComplete:function(req){$(container).innerHTML = req.responseText;}
	});
}

function ibotajaxpreview(container, script, img) {
	new Ajax.Request(script+".php",
	{ 
		method:'post', 
		postBody:'type='+$F('type')+'&entry='+$F('entry'),
		onCreate:function(){$(container).innerHTML = '<center><div style="padding:10px;"><img src="'+img+'.gif"></div></center>';},
		onComplete:function(req){$(container).innerHTML = req.responseText;}
	});
}

function ibotajaxuser(user, container, script, img) {
	new Ajax.Request(script+".php",
	{ 
		method:'post', 
		postBody:'user='+user+'&type='+$F('type')+'&entry='+$F('entry'),
		onCreate:function(){$(container).innerHTML = '<center><div style="padding:10px;"><img src="'+img+'.gif"></div></center>';},
		onComplete:function(req){$(container).innerHTML = req.responseText;}
	});
}

function ibotredir(url) {
	window.location=url;
}

function ibotajaxvar(x, container, script, img) {
	new Ajax.Request(script+".php",
	{ 
		method:'post', 
		postBody:'x='+x,
		onCreate:function(){$(container).innerHTML = '<center><div style="padding:10px;"><img src="'+img+'.gif" width="570" height="48"></div></center>';},
		onComplete:function(req){$(container).innerHTML = req.responseText;}
	});
}

function ibotcomment(userID,postID,replyID,container,varid,script, img) {
	new Ajax.Request(script+".php",
	{ 
		method:'post', 
		postBody:'user_ID='+userID+'&post_ID='+postID+'&reply_ID='+replyID+'&comment='+$F(varid),
		onCreate:function(){$(container).innerHTML = '<center><div style="padding:10px;"><img src="'+img+'.gif"></div></center>';},
		onComplete:function(req){$(container).innerHTML = req.responseText;}
	});
}


function showhide(id){
if (document.getElementById){
obj = document.getElementById(id);
if (obj.style.display == "none"){
obj.style.display = "";
} else {
obj.style.display = "none";
}
}
} 