	function updatePrice()
	
	{

		var square_footage = $('input#square_footage').val();
				
		
		if (isNaN (square_footage)) {
		  // Not A Number
		  alert('Sorry, square footage must be expressed as an integer. (example: 3125)') ;
		  $('input#square_footage').val('');
			var total_price = 0;
		} else {
		
			var total_price = 0;
		
		    if (square_footage == '') { // If no square footage, the whole function ends
				total_price = 0;
				$('span.total').html(total_price);
		
			} else if (square_footage <= 2000) {
	                total_price = total_price + 145;
		
			} else if (square_footage <= 3500) {
					total_price = total_price + 175;
		
			} else if (square_footage > 3500) {
					total_price = total_price + 225;
			} // End calculation of square footage price
		} // End check for NaN   


			image_number = $('#custom_image_number').val();
			
			image_number_over = image_number - 12;
			
			// Example: $99 base price plus 3% * 5 photos, turned to a percent (which is .15 ) = $113.85
			
			if (image_number_over > 0)
			total_price = total_price + (image_number_over * 15);
			
			if ($('select#do_you_require_a_twilight_shoot').val() == 'yes') 
			{
				total_price = total_price + 49;
			}
			
			if ($('select#do_you_require_a_video_slide_show').val() == 'yes') 
			{
				total_price = total_price + 25;
			}

			$('span.total').html('$' + total_price);
			$('input#cost_estimate').val(total_price);
		
	} // End updatePrice()
