If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Simple javascript order total calculator not working

I'm a complete novice to javascript and I am ready to rip my hair out over this one. I'm supposed to make a webpage that, upon loading, asks the user their name, what product they want to purchase, what the price of that product is, what the discount on that product is and what quantity of that product they would like to purchase. With this information, I am supposed to write javascript that will, at the bottom of my webpage in plain text, return:

"Thank you for placing an order with us [customer name].
The cost of buying [quantity] of [product name] is [cost].
The discount for this purchase is [how much of a discount the customer will be receiving].
With the discount, your total order cost is [total cost of order with discount]."

var product = prompt("Please enter the name of the product you are looking to purchase from the table.","Enter product");
var price = prompt("Please enter the price that corresponds to the product you would like to purchase from the price column.","Enter price");
var discount = prompt("Please enter the discount that corresponds to the product you would like to purchase from the discount column.","Enter discount");
var quantity = 1*prompt("How many " + product + " would you like to purchase?","Enter quantity");

I cannot even begin to tell you how much I appreciate that. I would have never seen that cause I was looking at it for so long that I wasn't even noticing that I misspelled a word. It all works now, but all of those document.write appear in one line. Is there a line break for javascript?