function PostComment (postid) {
	var comment = $F('comment_box');
	$('post_comment_button').value = 'Posting comment...';
	$('post_comment_button').disabled = true;
	$('post_comment_cancel').disabled = true;
	var myAjax = new Ajax.Updater ('comments','/action/post_comment', { method: 'post', parameters: 'postid='+postid+'&ajax=1&comment='+encodeURIComponent(comment), evalScripts: true });
}

function FetchComments (postid,sort_order) {
	$('comments_loading').style.display='block';
	var myAjax = new Ajax.Updater ('comments','/action/fetch_comments', { method: 'get', parameters: 'postid='+postid+'&sort_order='+sort_order, evalScripts: true });
}

function Buy (size,gender) {
	document.buy_form.size.value=size;
	document.buy_form.gender.value=gender;
	document.buy_form.submit();
}