function formValidation(form){
	if(notEmpty(form.bodytext)){
		return true;
	}
	return false;
}
function notEmpty(elem){
	var str = elem.value;
	if(str.length == 0){
		alert("Please enter your comments");
		return false;
	} else {
		return true;
	}
}
function askDelete(){
	var go = confirm("Are you sure you want to delete this?");
	if (go == true) {
		return true;
	}
	else {
		return false;
	}
}
function reload_captcha(item){
	var path = document.getElementsByName(item);
	var newsrc = path[0].src +='?'+ Math.round(Math.random()*100000);
	for(var i=0;i<path.length;i++){
		path[i].src = newsrc;
	}
}