I am new to Java Script and I am currently trying to pass the 1st assignment. I got stuck because I wasted too much time on other things. Can sobedy help me finish the game?? I know I d have to create some functions to do it but assignment is due on Friday I must pass it! . I do not wont to use the arrays to make it simpler and more understanduble for me. PLEASE HELP
this is the code I have.

<script type="text/javascript">
var gameover != false;
var credit = 100;
var bet = 0;
var d1 = Math.floor((Math.random()*6)+1);
var d2 = Math.floor((Math.random()*6)+1);
var d3 = Math.floor((Math.random()*6)+1);
if (confirm("Do you want to play tripple roll?") == true)
document.writeln("Welcome to ACME casino Ltd. Please gamble with care.");
document.writeln("<p>Tripple Roll Game <br>" + "<p> <b>Rules: </b>");
document.writeln("<p>You are betting and than 3 die are thrown.<br>");
document.writeln("<p>For each round of the game, You can bet between 1 and 100.<br>");
document.writeln("<p>Game has maximum of 10 rounds. At the end of each round You can continue or quit.<br>");
document.writeln("<p>If 3 die all show value of 1 than You win your bet * 50 + Your original stake back.");
document.writeln("<p>If the 3 die all show three same values (other than the value 1), then You win your bet * 30 + Your original stake back.<br>");
document.writeln("<p>If 2 die show the same value, then You win your bet * 8 + Your original stake back.<br>");
document.writeln("<p>If none of these prizes have been won, if the total of die come to 15 or more, You win 2 * Your bet + orginal stake back<br>")
document.writeln("<p>If one die shows a 6, or all the values of the die are odd numbers, then You will get Your bet back<br>")
document.writeln("<b><p>Betting Stuck: </b>" + credit);
document.writeln("See you later")

// I am trying to create the button when user decide to play the game. later on I know I d have to make some functions like:
var rolldice = function() // puts all 3 dice rolls into a function to be easily called.
die1 = Math.round(Math.random()*6); // random number generators for the 3 dice
die2 = Math.round(Math.random()*6); // dieX is an integer (round number) in the range of 1 to 6
die3 = Math.round(Math.random()*6);
and another function for updating the winnings and placing the bet which I m not sure about, can somebody please help??