// JavaScript Document

function confirmDeadLink(aLinkId)
 {
if (confirm('Are you sure that you want to report this link as dead ?\n')) {
	window.location = 'broken/link_id_' + aLinkId + '/'
	}
		return false;
	}
	
function checkData()
{
	var form=document.GetForm;
	var obj=form.reason;
	var result='';
	for (i=0;i<obj.length;i++){
		if (obj[i].checked){
			result=obj[i].value;
			break;
		}
	}
	if (result==''){
		alert('Please fill in the reason!');
		return false;
	}
	if (result=='Other reason'){
		if (form.comments.value.length<4){
			alert('Please enter other reason in text box (more than 3 characters)');
			form.p_comment.focus();
			return false;
		}
	}
	return true;
}