<!--
function volt(number,X) {
// rounds number to X decimal places, defaults to 2
X = (!X ? 5 : X);
return Math.round(number*Math.pow(10,X))/Math.pow(10,X);
}
function compute1z(obj) {
with (Math) {
fd=eval(obj.frequencyd.value);
r1=eval(obj.ohms1.value);
c1 =  1000000 / (6.283 *r1 *fd)
obj.cap1.value = volt(c1);
obj.res1.value = volt(r1 * 1.25);

}	
}
//-->
