jQuery('document').ready(function() {
	jQuery('#submitbutton').click(function(){calculateValues(); return true;});	
});

function calculateValues(){
	
	
	var Width, Heigth, LineScreen, Resolution, PixelWidth, PixelHeigth, TotalPixels;   
	var CMYKbitsvar, CMYKbytesvar, CMYKkbytesvar, CMYKmbytes, Results;
	
	Width=jQuery('#input1').val();      
	Heigth=jQuery('#input2').val();
	LineScreen=jQuery('#input3').val();
	Resolution=LineScreen*2;
	PixelWidth=Width*Resolution;
	PixelHeigth=Heigth*Resolution;
	TotalPixels=PixelWidth*PixelHeigth;
	CMYKbits=TotalPixels*32;
	CMYKbytes=CMYKbits/8;
	CMYKkbytes=CMYKbytes/1024;
	CMYKmbytes=CMYKkbytes/1024;
	
	Results = ("<div class='results'>");
	Results = (Results +"<h2>For Pixus Large Format Printing:</h2>");
	Results = (Results +"The size needed in pixels  is <b>" +PixelWidth+ "</b> x <b>" +PixelHeigth+ "</b><BR>");
	Results = (Results +"The size needed in MB's  is<b> "+CMYKmbytes);
	Results = (Results +"</div>");
	
	jQuery('#results').html(Results);

}