Price Calculator using Javascript
<p>Im trying to recreate this page <a href="http://psdtowp.com/order-now" rel="nofollow">http://psdtowp.com/order-now</a> but for another purpose, 
Im very new to JS so what I was going to do was have a list of variables with undefined values, I then wanted to have my input fields which onkeyup would populate the variables with a value, would this be possible? </p>

<p>My code at the moment is...</p>

<pre><code>/////////////////////////////////////////////////////////////////////

// Variables

// Content/SLA
var ContentMinutes = '';
var ContentMinutesSelector; // Switch Case
var ServiceLevel = '';
var NoOfFrames = '';

// Render Time (Hairier the Better)
var AvgFrameRenderTime = '';
var AvgFrameRenderTimeSelector; // Switch Case
var CoresInTest = '';

// Cost Estimate
var CostEstimate = '';

// Other
var EstimatedCoreHours = '';


/////////////////////////////////////////////////////////////////////

//  Functions

function CalculateEstimate() {
var EstimatedTotal = EstimatedCoreHours * ServiceLevel;     
document.getElementById("PriceEstimate").innerHTML=EstimatedTotal.toFixed(2);
 }
</code></pre>

<p>I have the onkeyup Calculate in my source only this JS isn't working...</p>

<pre><code>/////////////////////////////////////////////////////////////////////

// Variables

// Content/SLA
var ContentMinutes = '';
var ContentMinutesSelector; // Switch Case
var ServiceLevel = 5;
var NoOfFrames = '';

// Render Time (Hairier the Better)
var AvgFrameRenderTime = '';
var AvgFrameRenderTimeSelector; // Switch Case
var CoresInTest = '';

// Cost Estimate
var CostEstimate = ServiceLevel * EstimatedCoreHours;

// Other
var EstimatedCoreHours = 10;


/////////////////////////////////////////////////////////////////////

//  Functions

 function CalculateEstimate() { 
document.getElementById("PriceEstimate").innerHTML=CostEstimate.toFixed(2);
}
</code></pre>

<p>Is now returning NaN</p>

<p>NVM, it seems my variables need to be set before the multiplication, I didnt realise JS read it line by line...</p>
