	function formValidation()
		{
			var val =Array();	
			var present=0;				
			val=document.onlineOrderForm.pdtQnty;	
			for (i=0;i<val.length;i++)
			{
				if(val[i].value!=0)
				{	
					present=1;	
					break;
					
				}		
			}
			if(present==0)
			{
				DisplayMessage('Please Select Product', document.getElementById('message'), true, 2);
				alert('Please Select Product');
				document.onlineOrderForm.pdtQnty[0].focus();
				return false;
			}
			//return true;
			
			if(document.onlineOrderForm.txtName.value==0)
			{
				alert('Please enter your name');
				DisplayMessage("Please enter your name", document.getElementById('message'), true, 2);
				document.onlineOrderForm.txtName.className = 'TextSizeBox MANDATORY';				
				document.onlineOrderForm.txtName.select();
				document.onlineOrderForm.txtName.focus();
				return false;
			}
			else
			{
				document.onlineOrderForm.txtName.className = 'TextSizeBox';
			}
			if(document.onlineOrderForm.txtAddress.value==0)
			{
				DisplayMessage("Please enter your address", document.getElementById('message'), true, 2);
				alert('Please enter your address');
				document.onlineOrderForm.txtAddress.className = 'TextAreaBox MANDATORY';	
				document.onlineOrderForm.txtAddress.select();
				document.onlineOrderForm.txtAddress.focus();
				return false;
			}
			else
			{
				document.onlineOrderForm.txtAddress.className = 'TextAreaBox';
			}
			
			if(document.onlineOrderForm.txtPhone.value==0 && document.onlineOrderForm.txtMobile.value ==0)
			{
				DisplayMessage("Please enter your Phone No/Mobile No", document.getElementById('message'), true, 2);
				alert('Please enter your Phone No/Mobile No');
				document.onlineOrderForm.txtPhone.className = 'TextSizeBox MANDATORY';	
				document.onlineOrderForm.txtMobile.className = 'TextSizeBox MANDATORY';
				document.onlineOrderForm.txtPhone.select();
				document.onlineOrderForm.txtPhone.focus();
				return false;
			}
			else
			{
				document.onlineOrderForm.txtPhone.className = 'TextSizeBox';
				document.onlineOrderForm.txtMobile.className = 'TextSizeBox';
			}
			if(document.onlineOrderForm.txtPhone.value!=0)
			{
				if(ValidatePhoneNo(document.onlineOrderForm.txtPhone.value)==false)
				{
					alert('Enter a valid phone no');
					document.onlineOrderForm.txtPhone.className = 'TextSizeBox MANDATORY';	
					document.onlineOrderForm.txtPhone.select();
					document.onlineOrderForm.txtPhone.focus();
					return false;
				}
				else
				{
					document.onlineOrderForm.txtPhone.className = 'TextSizeBox';
				}
			}
			if(document.onlineOrderForm.txtMobile.value!=0)
			{
				if(ValidatePhoneNo(document.onlineOrderForm.txtMobile.value)==false)
				{
					alert('Invalid Mobile No');
					document.onlineOrderForm.txtMobile.className = 'TextSizeBox MANDATORY';
					document.onlineOrderForm.txtMobile.select();
					document.onlineOrderForm.txtMobile.focus();
					return false;
				}
				else
				{
					document.onlineOrderForm.txtMobile.className = 'TextSizeBox';
				}
			}
			if(document.onlineOrderForm.txtEmail.value==0)
			{
				alert('Please enter your email Id');
				DisplayMessage("Please enter your email Id", document.getElementById('message'), true, 2);
				document.onlineOrderForm.txtEmail.className = 'TextSizeBox MANDATORY';
				document.onlineOrderForm.txtEmail.select();
				document.onlineOrderForm.txtEmail.focus();
				return false;
			}
			else
			{
				document.onlineOrderForm.txtEmail.className = 'TextSizeBox';
			}
			if(ValidateEmail(document.onlineOrderForm.txtEmail.value)==false)			
			{	
				alert('Invalid email Id');
				document.onlineOrderForm.txtEmail.className = 'TextSizeBox MANDATORY';			
				document.onlineOrderForm.txtEmail.select();
				document.onlineOrderForm.txtEmail.focus();
				return false;
			}
			else
			{
				document.onlineOrderForm.txtEmail.className = 'TextSizeBox';
			}
			if(document.onlineOrderForm.txtaccountno.value==0)
			{
				DisplayMessage("Please enter your GOF Account Number", document.getElementById('message'), true, 2);
				alert('Please enter your GOF Account Number');
				document.onlineOrderForm.txtaccountno.className = 'TextSizeBox MANDATORY';
				document.onlineOrderForm.txtaccountno.select();
				document.onlineOrderForm.txtaccountno.focus();
				return false
			}
			else
			{
				document.onlineOrderForm.txtaccountno.className = 'TextSizeBox';
			}
			return true;
		}
	
