Can't seem to get my ASP to process this AS?!?

Hi guys,

Can anyone help me debug this ASP code to process this actionscript?

The original FLA can be found at http://www.designstudious.com.au/TEMP/RequestQuote_Form.zip

I’m using the following ASP code

<%
Dim MailSent 
MailSent = "true" 
<%= MailSent %> 

This is my actionscript on frame 1:

[AS]
function person(Name, Mail, Desc)
{
this.Name = Name;
this.Mail = Mail;
this.Desc = Desc;
} // End of the function
var mailerPage = “http://www.designstudious.com.au/cgi-bin/mail.asp”;
var maxTries = 10;
var numTries = 0;
var arrayCount = 0;
var personArray = new Array();
personArray.push(new person(“Paul”, “pauld@designstudious.com.au”, “All the fields with a (!) are needed.”));
firstname = “”;
lastname = “”;
email = “”;
phone = “”;
city = “”;
country = “”;
company = “”;
website = “”;
disenoweb = “”;
html = “”;
flash = “”;
ecommerce = “”;
backoffice = “”;
banner = “”;
brochure = “”;
logotipo = “”;
fotografia = “”;
subject = “Request A Quote”;
budget = “”;
url1 = “”;
url2 = “”;
description = “”;
mailSent = “”;
recipient = personArray[0].Mail;
mailerStatus = personArray[0].Desc;
contactPerson = personArray[0].Name;
arrayCount = 0;
stop ();
function Send()
{
if (firstname == “”)
{
mailerStatus = “<font color=”#FF0000">Please, fill in the NAME field.</font>";
stop ();
}
else if (email == “” || email.indexOf(".", 0) == -1 || _root.email.indexOf("@", 0) == -1)
{
mailerStatus = “<font color=”#FF0000">Please, fill in the E-MAIL field with a valid address.</font>";
stop ();
}
else if (lastname == “”)
{
mailerStatus = “<font color=”#FF0000">Please, fill in the SURNAME field.</font>";
stop ();
}
else if (description == “”)
{
mailerStatus = “<font color=”#FF0000">Please, provide me with a short PROJECT DESCRIPTION.</font>";
stop ();
}
else
{
loadVariablesNum(mailerPage, 0, “POST”);
mailerStatus = “Sending order.”;
gotoAndPlay(“SendMail”);
} // end if
} // End of the function
function incArray()
{
++arrayCount;
if (arrayCount == personArray.length)
{
arrayCount = 0;
} // end if
recipient = personArray[arrayCount].Mail;
mailerStatus = personArray[arrayCount].Desc;
contactPerson = personArray[arrayCount].Name;
} // End of the function
function decArray()
{
–arrayCount;
if (arrayCount < 0)
{
arrayCount = personArray.length - 1;
} // end if
recipient = personArray[arrayCount].Mail;
mailerStatus = personArray[arrayCount].Desc;
contactPerson = personArray[arrayCount].Name;
} // End of the function

[/AS]

when you click the send button this is the action script:

[AS]
if (mailSent != “”)
{
gotoAndPlay(“Finished”);
}
else
{
++numTires;
if (numTries >= maxTries)
{
gotoAndPlay(“Error”);
}
else
{
gotoAndPlay(“Finished”);
} // end if
} // end if
[/AS]

then once it has finished this is what happens
[AS]
mailSent = “”;
firstname = “”;
lastname = “”;
email = “”;
phone = “”;
city = “”;
country = “”;
company = “”;
website = “”;
servicios = “”;
budget = “”;
description = “”;
url1 = “”;
url2 = “”;
recipient = “pauld@designstudious.com.au”;
contactPerson = “Paul”;
arrayCount = 0;
mailerStatus = “Thanks! The order has been sent.”;
[/AS]