function valPwd()

{

	if(document.frm_login.user.value==""||document.frm_login.user.value==null)

	{

		alert('Username field can not be empty');

		document.frm_login.user.focus();

		return false;

	}

	if(document.frm_login.password.value==""||document.frm_login.password.value==null)

	{

		alert('Please provide valid Password');

		document.frm_login.password.focus();

		return false;

	}

	return true;

}



function valbat()

{

	if(document.frm_battery.battery.value=='' ||document.frm_battery.battery.value==null)

	{

		alert('Please select model name');

		document.frm_battery.battery.focus();

		return false;

	}

	return true;

}



function callcheck()

	{

		if(document.callback.cname.value=='' || document.callback.cname.value==null)

			{

				alert('Please provide your name');

				document.callback.cname.focus();

				return false;

			}

		if(document.callback.ccontact.value=='' || document.callback.ccontact.value==null)

			{

				alert('Please provide your contact number');

				document.callback.ccontact.focus();

				return false;

			}

		if(isNaN(document.callback.ccontact.value))

			{

				alert("A contact number must contain only numeric value");

				document.callback.ccontact.focus();

				return false;

			}	

		return true;	

	}


// JavaScript Document
