//insert kgs after pounds
var oldOnload = window.onload;
window.onload = OnLoad;

function OnLoad() {
    try {
        pound_kgs();
        //oldOnload();
    }
    catch(error) { }
}

function pound_kgs()
{
	var getContent = document.getElementById("insertkgs").innerHTML;

	for(var i=1; i<getContent.length-10; i++)
	{
    	if(getContent[i]=='.' && getContent[i+1]!=' ' && getContent.substr((i+3),6) == "pounds")
    	{
        	var getNumber = getContent[i-1]+ getContent[i] +getContent[i+1];
        	var insertContent = " (about " + (getNumber*0.45).toPrecision(2) + " kgs)";
	        document.getElementById("insertkgs").innerHTML = getContent.substr(0,i+9) + insertContent + getContent.substr(i+9);
        	break;
    	}	

	}
}
