

// limit textarea to a maxlength
function ismaxlength(obj){
	var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
	if(obj.getAttribute && obj.value.length>mlength){
		obj.value=obj.value.substring(0,mlength);
	}
}



//Check missing fields, stop specific hackers
function check_form(){
	
	if(document.review_form.email.value==""){
		alert("Please fill all boxes");
	}
	else if(document.review_form.review.value==""){
		alert("Please fill all boxes");
	}
	else{
		document.review_form.submit();
	}
}