Two problems in your page:
1. You need to include the following script file inclusion at the top of your page. The <head> section is a good place to do that.
Plz note that the above is your source I just copied it to make my point.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Expediter</title>
<link href="pretest.php_files/style.css" rel="stylesheet" type="text/css">
}else id.style.width = r + "%";
I've highlighted the change I've made if you specify the CSS dimension property like width, height, etc if the value is a non-zero then you need to specify the measure in which you need to set the property for example 'px', '%', 'em', etc. In this case I've used '%' but if you want you can set it to 'px' once you do that the script will start working.