		function convertSize(objId, fileSize)
		// rewrites destination file sizes in more appropriate manner ie: 2.3mb instead of 23000kb.
		// objId : the container of the file size reading.
		// filesize : the size of the file in bytes.
		{
		
		var idx = 0;
		var strFileSize = "";
		var measure = "";
		
		if(fileSize >= 1048576) // should be in mb
		{
			strFileSize = new String(fileSize / 1048576);
			idx = strFileSize.indexOf(".");
			measure = "Mb";
			idx = idx + 3;
		} else {
			strFileSize = new String(fileSize / 1024);
			idx = strFileSize.indexOf(".");
			measure = "kb";
		}
		
		if(fileSize <= 1048576) // should be in kb, but must be trimmed
		{
			if(fileSize.toString().length>=3)
			{
				fileSize=fileSize.toString().substring(0,2);
			}
		}
			document.getElementById(objId).innerHTML = strFileSize.substring(0, idx) + " " + measure; 
		}
		// -----------------------------------------------------------------------------------------------------------------------------
		// writes title for link, explaining approximate download time for each link.
		
		function setSpeedHint(objId, byteSize)
		{

			var calcSizeNumber = Math.round((byteSize/1024)/4);
						
			if(calcSizeNumber > 60)
			{
				
				var minutesReqd = Math.round(calcSizeNumber / 60);
				var secondsReqd = calcSizeNumber % 60;
				
				document.getElementById(objId).innerHTML = "~ " + minutesReqd + ":" + secondsReqd + " secs.";			
			} else {
				document.getElementById(objId).innerHTML = "~ " + calcSizeNumber + " secs.";
			}
		}