function check()
{
//alert("tushar");
   
   
     if(document.forgot.length.value=="")
	 {
	    alert("Please Enter the Length");
		document.forgot.length.focus();
		return false;	
	 }
   
     if(document.forgot.length.value!="")
	 {
      if(isAllNumerics(document.forgot.length.value)==false)	
				 {
				    alert("Please Enter the valid Length");
					document.forgot.length.focus();
					return false;
				 }
				 
	}		
	
	
	 if(document.forgot.width.value=="")
	 {
	    alert("Please Enter the Width");
		document.forgot.width.focus();
		return false;	
	 }
   
     if(document.forgot.width.value!="")
	 {
      if(isAllNumerics(document.forgot.width.value)==false)	
				 {
				    alert("Please Enter the valid width");
					document.forgot.width.focus();
					return false;
				 }
				 
	}	
	
	 if(document.forgot.height.value=="")
	 {
	    alert("Please Enter the Height");
		document.forgot.height.focus();
		return false;	
	 }
   
     if(document.forgot.height.value!="")
	 {
      if(isAllNumerics(document.forgot.height.value)==false)	
				 {
				    alert("Please Enter the valid Height");
					document.forgot.height.focus();
					return false;
				 }
				 
	}	
	
	 

var total=parseInt(document.getElementById('length').value) * parseInt(document.getElementById('width').value) * parseInt(document.getElementById('height').value) ;
//alert(total);
document.forgot.total.value=parseInt(total)/parseInt(4000);
 return false;

}


function check1()
{
   
     if(document.forgot1.length1.value=="")
	 {
	    alert("Please Enter the Length");
		document.forgot1.length1.focus();
		return false;	
	 }
   
     if(document.forgot1.length1.value!="")
	 {
      if(isAllNumerics(document.forgot1.length1.value)==false)	
				 {
				    alert("Please Enter the valid Length");
					document.forgot1.length1.focus();
					return false;
				 }
				 
	}		
	
	
	 if(document.forgot1.width1.value=="")
	 {
	    alert("Please Enter the Width");
		document.forgot1.width1.focus();
		return false;	
	 }
   
     if(document.forgot1.width1.value!="")
	 {
      if(isAllNumerics(document.forgot1.width1.value)==false)	
				 {
				    alert("Please Enter the valid width");
					document.forgot1.width1.focus();
					return false;
				 }
				 
	}	
	
	 if(document.forgot1.height1.value=="")
	 {
	    alert("Please Enter the Height");
		document.forgot1.height1.focus();
		return false;	
	 }
   
     if(document.forgot1.height1.value!="")
	 {
      if(isAllNumerics(document.forgot1.height1.value)==false)	
				 {
				    alert("Please Enter the valid Height");
					document.forgot1.height1.focus();
					return false;
				 }
				 
	}	
	
var total1=((parseInt(document.getElementById('height1').value) + parseInt(document.getElementById('width1').value)) * 2) + parseInt(document.getElementById('length1').value) ;
document.forgot1.total1.value=parseInt(total1);
 return false;

}

function isAllNumerics(objValue)
{
		var characters="0123456789."
		var tmp
		var lTag
		lTag = 0
		temp = (objValue.length)
		//alert(objValue);
		for (var i=0;i<temp;i++)
		{
			tmp=objValue.substring(i,i+1)
			if (characters.indexOf(tmp)==-1)
			{
				lTag = 1
			}
		}
		if(lTag == 1)
			return false
		else
		  if(objValue<=0)
		   {
			return false
		   }
		   else
		   { 	
			return true
		   }
}



