

function unit_calc(form) {
/*
parseInt(document.powerform.length.value);
width=parseInt(document.powerform.width.value);
people=parseInt(document.powerform.people.value);
computers=parseInt(document.powerform.computers.value);
power_required=((((length*width)*125)+(100*people))+(5*computers))/1000;
*/


var length = document.powerform.length.value;
var width = document.powerform.width.value;
var people = document.powerform.people.value;
var computers = document.powerform.computers.value;
var power_required = ((((length*width)*125)+(100*people))+(5*computers))/1000;
document.powerform.power.value = power_required;
}






/*
cm/inch/feet converter - credit must stay intact for use
By Ada Shimar ada@chalktv.com
For this script and more,
Visit http://javascriptkit.com
*/

function roundit(which){
return Math.round(which*100)/100
}

function inchconvert(){
with (document.cminch){
cm.value = roundit(inch.value*2.54);
m.value = roundit(inch.value*0.0254);
feet.value=roundit(inch.value/12);
}
}

function feetconvert(){
with (document.cminch){
cm.value=roundit(feet.value*30.48);
m.value = roundit(feet.value*0.3048);
inch.value=roundit(feet.value*12);
}
}

function cmconvert(){
with (document.cminch){
feet.value = roundit(cm.value/30.84);
inch.value = roundit(cm.value/2.54);
m.value = roundit(cm.value/100);
}
}

function mconvert(){
with (document.cminch){
feet.value = roundit(m.value/0.3084);
inch.value = roundit(m.value/0.0254);
cm.value = roundit(m.value*100);
}
}


/* temp */



//DO NOT REMOVE THIS COPYWRITE INFO!
//Temperature Conversion Calculator
//By Daniel C. Peterson
//Web Winder Website Services, 1997-2007  All Rights Reserved.
//Distribution, editing or reselling of this script is strictyly prohibited
//without expressed written permission from Daniel C. Peterson.
//For commercial grade (professional) versions of this and many other
//calculators, visit http://www.webwinder.com.

function computeFar(form)

{

   form.farCon.value = parseInt(eval((1.8 * form.cel.value) + 32),10);
    
}

function computeCel(form)

{
    
   form.celCon.value = parseInt(eval((form.far.value - 32) / 1.8),10);

}


function clearForm(form)

{

    
    form.far.value = "";

    form.celCon.value = "";

    form.cel.value = "";

    form.farCon.value = "";


}
