$(document).ready(function() {
	$("form#login_form").submit(function(){ 
	     if(!isCheckedById("aggrement")){ 
	         alert ("Please Aggree to the terms of the disclaimer"); 
	         return false; 
	     } 
	     else { 
	         return true; //submit the form 
	     } 
	});
});
function isCheckedById(id){ 
    var checked = $("input[id="+id+"]:checked").length; 
    if (checked == 0){ 
        return false; 
    } 
    else{ 
        return true; 
    } 
}