// JavaScript Document
function chkLogin() {
	with (window.document.lgnfrm) {
		if (isEmpty(login, 'Enter Login')) {
			return false;
		} else if (isEmpty(password, 'Enter Password')) {
			return false;
		} else {
			chksum.value = 'chkin';
		}
	}
}

function chkSearch(fld){
	if(document.getElementById(fld).value == ""){
		alert("Please Enter Search String");
		document.getElementById(fld).focus();
		return false;
	}
	return true;
}





function chkNews() {
	with (window.document.frmadd) {
		
		if (cat_id.value == 0 || cat_id.value == "") {
			alert('Select Category');
			cat_id.focus();
			return false;
		}else if (isEmpty(news_title, 'Enter News Title')) {
			return false;
		}



		chksum.value = 'chkin';
	}
}
function chkNewsCategory() {
	with (window.document.frmadd) {
		if (isEmpty(cat_title, 'Enter News Category')) {
			return false;
		}		
		chksum.value = 'chkin';
	}
}
function chkNewsCat() {
	with (window.document.frmadd) {
		if (isEmpty(cat_name, 'Enter Category Name')) {
			return false;
		}
		chksum.value = 'chkin';
	}
}
