
function check_login()
{
	if(window.document.loginform.loginid.value == ""){
	  window.document.loginform.loginid.focus();
	  window.alert("Please Enter Login ID (SVNIT Mail ID)...");
	  return false;
	}
	if(window.document.loginform.password.value == ""){
	  window.document.loginform.Password.focus();
	  window.alert("Please Enter Password ...");
	  return false;
	}
	if(window.document.loginform.empcode.value == ""){
	  window.document.loginform.empcode.focus();
	  window.alert("Please Enter Employee Code...");
	  return false;
	}
	
}

function check_pass()
{
	if(window.document.changepass.passwd.value == ""){
	  window.document.loginform.passwd.focus();
	  window.alert("Password cannot be Blank...!");
	  return false;
	}
	if(window.document.changepass.newp.value == ""){
	  window.document.changepass.newp.focus();
	  window.alert("New Password Cannot be Blank...!");
	  return false;
	}
	if(window.document.changepass.confirmp.value == ""){
	  window.document.changepass.confirmp.focus();
	  window.alert("New Password (Confirm) Cannot be Blank...!");
	  return false;
	}
	if (window.document.changepass.newp.value != window.document.changepass.confirmp.value){
		window.document.changepass.confirmp.focus();
		window.alert("New Password and Confirm Password Does Not Match...!");
		return false;
	}
}

function check_personal()
	{
	if(window.document.personal.empname.value == "")
		{
		window.document.personal.empname.focus();
	  	window.alert("Please Enter Your Name...");
	  	return false;
		}
	if(window.document.personal.hq.value == "")
		{
	  	window.document.personal.hq.focus();
	  	window.alert("Please Enter Highest Qualification ...");
	  	return false;
		}
	if(window.document.personal.designation.value == "")
		{
	  	window.document.personal.designation.focus();
	  	window.alert("Please Enter Designation...");
	  	return false;
		}
	if(window.document.personal.department.value == "")
		{
	  	window.document.personal.department.focus();
	  	window.alert("Please Enter Department Name...");
	  	return false;
		}
	if(window.document.personal.dddoj.value == "")
		{
	  	window.document.personal.dddoj.focus();
	  	window.alert("Please Enter Joining Date...");
	  	return false;
		}
	if (window.document.personal.yydoj.value=="")
		{
	  	window.document.personal.yydoj.focus();
	  	window.alert("Please Enter Joining Year...");
	  	return false;
		}
	if(window.document.personal.texp.value == "")
		{
	  	window.document.personal.texp.focus();
	  	window.alert("Please Enter Total Experience...");
	  	return false;
		}
	}

function check_research()
	{
	if (window.document.research.ra1.value=="")
		{
		window.document.research.ra1.focus();
		window.alert("Please Enter Atleast one Research Area...");
		return false;
		}
	}

function check_course()
	{
	if (window.document.course.course.value=="")
		{
		window.document.course.course.focus();
		window.alert("Please Enter Course...");
		return false;
		}
	}

function check_publication()
	{
	if (window.document.publication.authors.value=="")
		{
		window.document.publication.authors.focus();
		window.alert("Please Enter the Authors...");
		return false;
		}
if (window.document.publication.title.value=="")
		{
		window.document.publication.title.focus();
		window.alert("Please Enter the Title...");
		return false;
		}
if (window.document.publication.publisher.value=="")
		{
		window.document.publication.publisher.focus();
		window.alert("Please Enter the Publisher...");
		return false;
		}
if (window.document.publication.pubyear.value=="")
		{
		window.document.publication.pubyear.focus();
		window.alert("Please Enter the Publication Year...");
		return false;
		}
if (window.document.publication.nmconf.value=="")
		{
		window.document.publication.nmconf.focus();
		window.alert("Please Enter the Name of Conference...");
		return false;
		}
	}

function check_lectures()
	{
	if (window.document.lectures.lec.value=="")
		{
		window.document.lectures.lec.focus();
		window.alert("Please Enter the Lecture Details...");
		return false;
		}
	}

function check_mtech()
	{
	if (window.document.Mtech_form.mtech.value=="")
		{
		window.document.Mtech_form.mtech.focus();
		window.alert("Please Enter The M.Tech. Student Name...");
		return false;
		}
	}

function check_phd()
	{
	if (window.document.PhD_form.phd.value=="")
		{
		window.document.PhD_form.phd.focus();
		window.alert("Please Enter The Ph.D. Student NAme...");
		return false;
		}
	}
	
function check_wss()
	{
/*	if (window.document.wss_form.wsstype.value=="")
		{
		window.document.wss_form.wsstype.focus();
		window.alert("Please Select One from Workshop / Seminar / STTPs...");
		return false;
		}*/
	if (window.document.wss_form.wss.value="")
		{
		window.document.wss_form.wss.focus();
		window.alert("Please Enter the Workshop / Seminar / STTPs Details...");
		return false;
		}
	}

function check_extra()
	{
	if (window.document.extra.duties.value=="")
		{
		window.document.extra.duties.focus();
		window.alert("Please Enter The Administrative Duties...");
		return false;
		}
	if (window.document.extra.membership.value=="")
		{
		window.document.extra.membership.focus();
		window.alert("Please Enter the Membership of Profesional Bodies...");
		return false;
		}
	}

function check_others()
	{
	if (window.document.other.others.value=="")
		{
		window.document.other.others.focus();
		window.alert("Please Enter the Other Details Before Save...");
		return false;
		}
	}


function check_project()
	{
	if (window.document.projects.project.value=="")
		{
		window.document.projects.project.focus();
		window.alert("Please Enter the Proect Details...");
		return false;
		}
	}

function show_all()
	{
//document.publication.rptype.focus();
	last1.style.visibility="visible";
	last2.style.visibility="visible";
	last3.style.visibility="visible";
	}

function change_box()
	{
	document.publication.Book.focus();
	if (last1.style.visibility == "visible")
		{
		last1.style.visibility="hidden";
		window.document.publication.flag.value="1";
		}
	else
		{
		last1.style.visibility="visible";
		window.document.publication.flag.value="0";
		}
	if (last2.style.visibility == "visible")
		{
		last2.style.visibility="hidden";
		window.document.publication.flag.value="1";
		}
	else
		{
		last2.style.visibility="visible";
		window.document.publication.flag.value="0";
		}
	if (last3.style.visibility == "visible")
		{
		last3.style.visibility="hidden";
		window.document.publication.flag.value="1";
		}
	else
		{
		last3.style.visibility="visible";
		window.document.publication.flag.value="0";
		}
	}

