hi
im new to this javascript business and have a problem with the following code
<HTML>
<HEAD>
<TITLE>
SOFASPEND - IN THE BEST POSSIBLE TASTE
</TITLE>
<SCRIPT LANGUAGE = "JavaScript">
/* Program to prompt for a number and then display message according to the response but allowed 2 maximum tries at entering number*/
var response;
var NewCustomer;
var ExistingCustomer;
NewCustomer = 1;
ExistingCustomer = 2;
response = window.prompt('Please enter 1 if you are a new customer or 2 if you are an existing customer','');
response = parseFloat(response);
if (response = '1')
{ document.write('WELCOME – WE WILL SET UP YOUR ACCOUNT DETAILS NOW')
}
else
{
if (response = '2')
document.write('SHOP TILL YOU DROP')
};
</SCRIPT>
</HEAD>
<BODY>
</BODY>
</HTML>