Hello,
I know almost nothing about
JS, but a script that we've been using for months now suddenly stopped working properly in IE. It still works properly in Firefox... The error I get is "Unterminated string constant" on line 749, char 44, you can see for yourself by going here:
http://www.thepointnyc.com/index.php...ting:7-9PM%20/ and clicking "add to cart" and "Checkout" on the next page (sorry, direct link is impossible, on that page the list with states doesn't appear anymore, the full code is below. (sorry for posting such a long code, but I thought it was the safest to just post everything.)
Thanks!
Gert
[code]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>The Point Knitting Cafe NYC</title>
<meta name="description" content="The Point Knitting Cafe, eat knit and be happy. Located in Grenwich Village, Manhattan NYC 10014" />
<meta name="keywords" content="The Point Knitting Cafe, knitting, crochet, needles, yarn, scanes, wool, nylon, round needles, bamboo" />
<meta name="Generator" content="Mambo - Copyright 2000 - 2005 Miro International Pty Ltd. All rights reserved." />
<meta name="robots" content="index, follow" />
<style type="text/css" media="screen">img { behavior: url(components/com_phpshop/
js/pngbehavior.htc); }</style>
<link rel="shortcut icon" href="http://www.thepointnyc.com/images/favicon.ico" />
<link rel="stylesheet"
href="http://www.thepointnyc.com/templates/tem_asteri_v2/css/template_css.css"
type="text/css"/><link rel="shortcut icon"
href="http://www.thepointnyc.com/templates/tem_asteri_v2/images/favicon.ico" />
<style type="text/css">
<!--
.TopMenu {font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #882f01; }
.style16 {
color: #f68426;
font-size: 11pt;
}
.style18 {color: #f68426; font-size: 12px; }
.style19 {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
}
.style20 {font-size: 11px}
.style21 {font-size: 11px}
.style22{ font-align: right;
font-size: 11px;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
.style11 {
font-size: 13px;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #FF66FF;
}
-->
</style>
</head>
<body>
<div align="left">
<table width="802" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="166" rowspan="2"><a href="http://www.thepointnyc.com/index.php"><img
src="images/Home-Page_sliced_01.png" alt="" width="166" height="146" border="0" /></a></td>
<td width="162" rowspan="2"><a href="http://www.thepointnyc.com/index.php?option=com_eac"><img
src="images/Home-Page_sliced_02.png" width="162" height="146" alt="" border="0" /></a></td>
<td width="155" rowspan="2"><a
href="http://www.thepointnyc.com/index.php?option=com_content&task=view&id= 8&Itemid=9"><img
src="images/Home-Page_sliced_03.png" width="155" height="146" alt="" border="0" /></a></td>
<td width="1" height="47"> </td>
<td width="482"><table width="100%" border="0" cellpadding="0">
<tr>
<td class="TopMenu"><div align="center"><a
href='http://www.thepointnyc.com/index.php?option=com_content&task=view&id= 28&Itemid=28' >Holiday Gifts</a></div></td>
<td class="TopMenu"><div align="center"><a
href='http://www.thepointnyc.com/index.php?option=com_giftcertificate' >Gift
Certificates</a></div></td>
<td class="TopMenu"><div align="center"><img src='images/cart.gif' border='0' /></td>
<td class="TopMenu"><div align="center"><a href='http://www.thepointnyc.com/index.php?option=com_phpshop&page=shop.cart' >Shopping Cart</a></div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="68" colspan="2"><img src='images/page_headers/checkout.gif' border='0'/></td>
</tr>
</table>
<table width="802" border="0" align="center" cellpadding="0" cellspacing="0">
<tr class="TopMenu">
<td width="166" class="TopMenu"><div align="center"><a
href="http://www.thepointnyc.com/index.php?option=com_content&task=view&id= 2&Itemid=2" >About Us </a></div></td>
<td width="162" class="TopMenu"><div align="center"><a
href="http://www.thepointnyc.com/index.php?option=com_eac" >Classes and Events </a></div></td>
<td width="155" class="TopMenu"><div align="center"><a
href="http://www.thepointnyc.com/index.php?option=com_content&task=view&id= 8&Itemid=9" >Shop</a></div></td>
<td width="140" class="TopMenu"><div align="center"><a
href="http://www.thepointnyc.com/blog/">The Point's Blog</a></div></td>
<td width="179" class="TopMenu"><div><form
action='http://www.thepointnyc.com/index.php?option=com_gpd' method='post'
style='margin:0;padding:0;'>
<input type='text' name='simple_search' onclick="value=''" value='search here...' size='15'
style='vertical-align:bottom; height:70%;'>
<input type='submit' name='submit-simple_search' value='Go' style='vertical-align:bottom;
height:80%;'></form></td>
</tr>
<tr><td></td><td></td><td></td><td></td><td><a
href='http://www.thepointnyc.com/index.php?option=com_gpd&task=search' style='vertical-align:top;
margin:0; font-align:left' >Advanced search</a></td></tr>
</table>
<table width="802" border="0" align="center" cellpadding="0" cellspacing="8">
<tr>
<td>
<h3>Checkout</h3>
<table style="background: url(
https://www.thepointnyc.com/componen...heckout4_1.png) right; background-repeat: no-repeat; height:85px;text-align:center;" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="font-weight: bold;" width="119" align="center" valign="bottom">
Shipping Address </td>
<td width="119" align="center" valign="bottom">
Ship Methods </td>
<td width="119" align="center" valign="bottom">
Payment Method </td>
<td width="119" align="center" valign="bottom">
Complete Order </td>
</tr>
</table>
<br />
<br />
<fieldset>
<legend><span class="sectiontableheader">Returning Customers: Please Log In</span></legend>
<br />
<form action="index.php?option=login" method="post" name="login">
<div style="width:98%;">
<div style="float:left;width:30%;text-align:right;">
<label for="username_login">Username:</label>
</div>
<div style="float:left;width:60%;">
<input type="text" id="username_login" name="username" class="inputbox" size="20" />
</div>
<br/><br/>
<div style="float:left;width:30%;text-align:right;">
<label for="passwd_login">Password:</label>
</div>
<div style="float:left;width:30%;">
<input type="password" id="passwd_login" name="passwd" class="inputbox" size="20" />
</div>
<div style="float:left;width:30%;">
<input type="submit" name="Submit" class="button" value="Login" />
</div>
<div style="float:left;width:37%;text-align:right;">
<a href="index.php?option=com_registration&task=l ostPassword"><strong>Forgot Password?</strong></a>
</div>
</div>
<input type="hidden" name="op2" value="login" />
<input type="hidden" name="remember" value="yes" />
<input type="hidden" name="lang" value="english" />
<input type="hidden" name="return" value="https://www.thepointnyc.com/index.php?page=checkout.index&option=com_phpsh op&Itemid=8" />
</form>
<br />
</fieldset><br />
<br />
<fieldset>
<legend><span class="sectiontableheader">New? Please Provide Your Billing Information</span></legend>
<br />
<script language="javascript" type="text/javascript" src="includes/
js/mambojavascript.
js"></script>
<script language="javascript" type="text/javascript">//<![CDATA[
function submitregistration() {
var form = document.adminForm;
var r = new RegExp("[\<|\>|\"|\'|\%|\;|\(|\)|\&|\+|\-]", "i");
// do field validation
if (form.username.value == "") {
alert( "Please enter a user name." );
return false;
}
else if (form.username.value.length < 3) {
alert( "Please enter a valid Username:. No spaces, more than 2 characters and contain 0-9,a-z,A-Z" );
return false;
}
else if (form.email.value == "") {
alert( "Please enter a valid e-mail address." );
return false;
}
else if (form.password.value.length < 6) {
alert( "Please enter a valid password. No spaces, more than 6 characters and contain 0-9,a-z,A-Z" );
return false;
} else if (form.password2.value == "") {
alert( "Please verify the password." );
return false;
} else if ((form.password.value != "") && (form.password.value != form.password2.value)){
alert( "Password and verification do not match, please try again." );
return false;
}
else
if (!form.agreed.checked) {
alert( "Please agree to our terms of Service first." );
return false;
}
else {
return true;
}
}
//]]></script>
<div style="width:90%;">
<form action="https://www.thepointnyc.com/index.php" method="post" name="adminForm">
<div align="right">
Registration (* = Required) </div>
<br/>
<fieldset>
<legend><span class="sectiontableheader">Customer Information</span></legend>
<div style="float:left;width:30%;text-align:right;">
<label for="uname_field">Username:</label>* </div>
<div style="float:left;width:60%;">
<input type="text" id="uname_field" name="username" size="40" value="" class="inputbox" />
</div>
<br/><br/>
<div style="float:left;width:30%;text-align:right;" >
<label for="email_field">E-mail:</label>*</div>
<div style="float:left;width:60%;"><input type="text" id="email_field" name="email" size="40" value="" class="inputbox" /></div>
<br/><br/>
<div style="float:left;width:30%;text-align:right;" >
<label for="passwd_field">Password:</label>*</div>
<div style="float:left;width:60%;"><input class="inputbox" type="password" id="passwd_field" name="password" size="40" value="" /></div>
<br/><br/>
<div style="float:left;width:30%;text-align:right;" >
<label for="password2">Verify Password:</label>*</div>
<div style="float:left;width:60%;"><input class="inputbox" type="password" id="password2" name="password2" size="40" value="" /></div>
<br/><br/>
</fieldset>
<br/>
<fieldset>
<legend class="sectiontableheader">Bill To Information</legend>
<div style="float:left;width:30%;text-align:right;" >
<label for="user_title">Title</label>:</div>
<div style="float:left;width:60%;"><select class="inputbox" name="title" id="user_title">
<option value="">none</option>
<option value="Mr.">Mr.</option>
<option value="Mrs.">Mrs.</option>
<option value="Dr.">Dr.</option>
<option value="Prof.">Prof.</option>
</select>
</div>
<br/><br/>
<div style="float:left;width:30%;text-align:right;">
<label for="first_name">First Name</label>*:</div>
<div style="float:left;width:60%;">
<input type="text" id="first_name" name="first_name" size="40" value="" class="inputbox" />
</div>
<br/><br/>
<div style="float:left;width:30%;text-align:right;" >
<label for="last_name">Last Name</label>*:</div>
<div style="float:left;width:60%;">
<input type="text" id="last_name" name="last_name" size="40" value="" class="inputbox" />
</div>
<br/><br/>
<div style="float:left;width:30%;text-align:right;">
<label for="middle_name">Middle Name</label>:</div>
<div style="float:left;width:60%;">
<input type="text" id="middle_name" name="middle_name" size="40" value="" class="inputbox" />
</div>
<br/><br/>
<div style="float:left;width:30%;text-align:right;" >
<label for="company">Company Name</label>:</div>
<div style="float:left;width:60%;">
<input type="text" id="company" name="company" size="40" value="" class="inputbox" />
</div>
<br/><br/>
<div style="float:left;width:30%;text-align:right;">
<label for="address_1">Address 1</label>*:</div>
<div style="float:left;width:60%;">
<input type="text" id="address_1" name="address_1" size="40" value="" class="inputbox" />
</div>
<br/><br/>
<div style="float:left;width:30%;text-align:right;" >
<label for="address_2">Address 2</label>:</div>
<div style="float:left;width:60%;">
<input type="text" id="address_2" name="address_2" size="40" value="" class="inputbox" />
</div>
<br/><br/>
<div style="float:left;width:30%;text-align:right;">
<label for="city">City</label>*:</div>
<div style="float:left;width:60%;">
<input type="text" id="city" name="city" size="40" value="" class="inputbox" />
</div>
<br/><br/>
<div style="float:left;width:30%;text-align:right;">
<label for="zip">Zip/Postal Code</label>*:</div>
<div style="float:left;width:60%;">
<input type="text" id="zip" name="zip" size="10" value="" class="inputbox" />
</div>
<br/><br/>
<div style="float:left;width:30%;text-align:right;">
<label for="country_field">Country</label>*:</div>
<div style="float:left;width:60%;">
<select class="inputbox" name="country" id="country_field" onchange="changeStateList();">
<option value="">Select</option>
<option value="AFG">Afghanistan</option>
<option value="ALB">Albania</option>
<option value="DZA">Algeria</option>
<option value="ASM">American Samoa</option>
<option value="AND">Andorra</option>
<option value="AGO">Angola</option>
<option value="AIA">Anguilla</option>
<option value="ATA">Antarctica</option>
<option value="ATG">Antigua and Barbuda</option>
<option value="ARG">Argentina</option>
<option value="ARM">Armenia</option>
<option value="ABW">Aruba</option>
<option value="AUS">Australia</option>
<option value="AUT">Austria</option>
<option value="AZE">Azerbaijan</option>
<option value="BHS">Bahamas</option>
<option value="BHR">Bahrain</option>
<option value="BGD">Bangladesh</option>
<option value="BRB">Barbados</option>
<option value="BLR">Belarus</option>
<option value="BEL">Belgium</option>
<option value="BLZ">Belize</option>
<option value="BEN">Benin</option>
<option value="BMU">Bermuda</option>
<option value="BTN">Bhutan</option>
<option value="BOL">Bolivia</option>
<option value="BIH">Bosnia and Herzegowina</option>
<option value="BWA">Botswana</option>
<option value="BVT">Bouvet Island</option>
<option value="BRA">Brazil</option>
<option value="IOT">British Indian Ocean Territory</option>
<option value="BRN">Brunei Darussalam</option>
<option value="BGR">Bulgaria</option>
<option value="BFA">Burkina Faso</option>
<option value="BDI">Burundi</option>
<option value="KHM">Cambodia</option>
<option value="CMR">Cameroon</option>
<option value="CAN">Canada</option>
<option value="CPV">Cape Verde</option>
<option value="CYM">Cayman Islands</option>
<option value="CAF">Central African Republic</option>
<option value="TCD">Chad</option>
<option value="CHL">Chile</option>
<option value="CHN">China</option>
<option value="CXR">Christmas Island</option>
<option value="CCK">Cocos (Keeling) Islands</option>
<option value="COL">Colombia</option>
<option value="COM">Comoros</option>
<option value="COG">Congo</option>
<option value="COK">Cook Islands</option>
<option value="CRI">Costa Rica</option>
<option value="CIV">Cote D'Ivoire</option>
<option value="HRV">Croatia</option>
<option value="CUB">Cuba</option>
<option value="CYP">Cyprus</option>
<option value="CZE">Czech Republic</option>
<option value="DNK">Denmark</option>
<option value="DJI">Djibouti</option>
<option value="DMA">Dominica</option>
<option value="DOM">Dominican Republic</option>
<option value="TMP">East Timor</option>
<option value="ECU">Ecuador</option>
<option value="EGY">Egypt</option>
<option value="SLV">El Salvador</option>
<option value="GNQ">Equatorial Guinea</option>
<option value="ERI">Eritrea</option>
<option value="EST">Estonia</option>
<option value="ETH">Ethiopia</option>
<option value="FLK">Falkland Islands (Malvinas)</option>
<option value="FRO">Faroe Islands</option>
<option value="FJI">Fiji</option>
<option value="FIN">Finland</option>
<option value="FRA">France</option>
<option value="FXX">France, Metropolitan</option>
<option value="GUF">French Guiana</option>
<option value="PYF">French Polynesia</option>
<option value="ATF">French Southern Territories</option>
<option value="GAB">Gabon</option>
<option value="GMB">Gambia</option>
<option value="GEO">Georgia</option>
<option value="DEU">Germany</option>
<option value="GHA">Ghana</option>
<option value="GIB">Gibraltar</option>
<option value="GRC">Greece</option>
<option value="GRL">Greenland</option>
<option value="GRD">Grenada</option>
<option value="GLP">Guadeloupe</option>
<option value="GUM">Guam</option>
<option value="GTM">Guatemala</option>
<option value="GIN">Guinea</option>
<option value="GNB">Guinea-bissau</option>
<option value="GUY">Guyana</option>
<option value="HTI">Haiti</option>
<option value="HMD">Heard and Mc Donald Islands</option>
<option value="HND">Honduras</option>
<option value="HKG">Hong Kong</option>
<option value="HUN">Hungary</option>
<option value="ISL">Iceland</option>
<option value="IND">India</option>
<option value="IDN">Indonesia</option>
<option value="IRN">Iran (Islamic Republic of)</option>
<option value="IRQ">Iraq</option>
<option value="IRL">Ireland</option>
<option value="ISR">Israel</option>
<option value="ITA">Italy</option>
<option value="JAM">Jamaica</option>
<option value="JPN">Japan</option>
<option value="JOR">Jordan</option>
<option value="KAZ">Kazakhstan</option>
<option value="KEN">Kenya</option>
<option value="KIR">Kiribati</option>
<option value="PRK">Korea, Democratic People's Republic of</option>
<option value="KOR">Korea, Republic of</option>
<option value="KWT">Kuwait</option>
<option value="KGZ">Kyrgyzstan</option>
<option value="LAO">Lao People's Democratic Republic</option>
<option value="LVA">Latvia</option>
<option value="LBN">Lebanon</option>
<option value="LSO">Lesotho</option>
<option value="LBR">Liberia</option>
<option value="LBY">Libyan Arab Jamahiriya</option>
<option value="LIE">Liechtenstein</option>
<option value="LTU">Lithuania</option>
<option value="LUX">Luxembourg</option>
<option value="MAC">Macau</option>
<option value="MKD">Macedonia, The Former Yugoslav Republic of</option>
<option value="MDG">Madagascar</option>
<option value="MWI">Malawi</option>
<option value="MYS">Malaysia</option>
<option value="MDV">Maldives</option>
<option value="MLI">Mali</option>
<option value="MLT">Malta</option>
<option value="MHL">Marshall Islands</option>
<option value="MTQ">Martinique</option>
<option value="MRT">Mauritania</option>
<option value="MUS">Mauritius</option>
<option value="MYT">Mayotte</option>
<option value="MEX">Mexico</option>
<option value="FSM">Micronesia, Federated States of</option>
<option value="MDA">Moldova, Republic of</option>
<option value="MCO">Monaco</option>
<option value="MNG">Mongolia</option>
<option value="MSR">Montserrat</option>
<option value="MAR">Morocco</option>
<option value="MOZ">Mozambique</option>
<option value="MMR">Myanmar</option>
<option value="NAM">Namibia</option>
<option value="NRU">Nauru</option>
<option value="NPL">Nepal</option>
<option value="NLD">Netherlands</option>
<option value="ANT">Netherlands Antilles</option>
<option value="NCL">New Caledonia</option>
<option value="NZL">New Zealand</option>
<option value="NIC">Nicaragua</option>
<option value="NER">Niger</option>
<option value="NGA">Nigeria</option>
<option value="NIU">Niue</option>
<option value="NFK">Norfolk Island</option>
<option value="MNP">Northern Mariana Islands</option>
<option value="NOR">Norway</option>
<option value="OMN">Oman</option>
<option value="PAK">Pakistan</option>
<option value="PLW">Palau</option>
<option value="PAN">Panama</option>
<option value="PNG">Papua New Guinea</option>
<option value="PRY">Paraguay</option>
<option value="PER">Peru</option>
<option value="PHL">Philippines</option>
<option value="PCN">Pitcairn</option>
<option value="POL">Poland</option>
<option value="PRT">Portugal</option>
<option value="PRI">Puerto Rico</option>
<option value="QAT">Qatar</option>
<option value="REU">Reunion</option>
<option value="ROM">Romania</option>
<option value="RUS">Russian Federation</option>
<option value="RWA">Rwanda</option>
<option value="KNA">Saint Kitts and Nevis</option>
<option value="LCA">Saint Lucia</option>
<option value="VCT">Saint Vincent and the Grenadines</option>
<option value="WSM">Samoa</option>
<option value="SMR">San Marino</option>
<option value="STP">Sao Tome and Principe</option>
<option value="SAU">Saudi Arabia</option>
<option value="SEN">Senegal</option>
<option value="SYC">Seychelles</option>
<option value="SLE">Sierra Leone</option>
<option value="SGP">Singapore</option>
<option value="SVK">Slovakia (Slovak Republic)</option>
<option value="SVN">Slovenia</option>
<option value="SLB">Solomon Islands</option>
<option value="SOM">Somalia</option>
<option value="ZAF">South Africa</option>
<option value="SGS">South Georgia and the South Sandwich Islands</option>
<option value="ESP">Spain</option>
<option value="LKA">Sri Lanka</option>
<option value="SHN">St. Helena</option>
<option value="SPM">St. Pierre and Miquelon</option>
<option value="SDN">Sudan</option>
<option value="SUR">Suriname</option>
<option value="SJM">Svalbard and Jan Mayen Islands</option>
<option value="SWZ">Swaziland</option>
<option value="SWE">Sweden</option>
<option value="CHE">Switzerland</option>
<option value="SYR">Syrian Arab Republic</option>
<option value="TWN">Taiwan</option>
<option value="TJK">Tajikistan</option>
<option value="TZA">Tanzania, United Republic of</option>
<option value="THA">Thailand</option>
<option value="TGO">Togo</option>
<option value="TKL">Tokelau</option>
<option value="TON">Tonga</option>
<option value="TTO">Trinidad and Tobago</option>
<option value="TUN">Tunisia</option>
<option value="TUR">Turkey</option>
<option value="TKM">Turkmenistan</option>
<option value="TCA">Turks and Caicos Islands</option>
<option value="TUV">Tuvalu</option>
<option value="UGA">Uganda</option>
<option value="UKR">Ukraine</option>
<option value="ARE">United Arab Emirates</option>
<option value="GBR">United Kingdom</option>
<option value="USA" selected="selected">United States</option>
<option value="UMI">United States Minor Outlying Islands</option>
<option value="URY">Uruguay</option>
<option value="UZB">Uzbekistan</option>
<option value="VUT">Vanuatu</option>
<option value="VAT">Vatican City State (Holy See)</option>
<option value="VEN">Venezuela</option>
<option value="VNM">Viet Nam</option>
<option value="VGB">Virgin Islands (British)</option>
<option value="VIR">Virgin Islands (U.S.)</option>
<option value="WLF">Wallis and Futuna Islands</option>
<option value="ESH">Western Sahara</option>
<option value="YEM">Yemen</option>
<option value="YUG">Yugoslavia</option>
<option value="ZAR">Zaire</option>
<option value="ZMB">Zambia</option>
<option value="ZWE">Zimbabwe</option>
</select>
</div>
<br/><br/>
<div style="float:left;width:30%;text-align:right;">
<label for="state">State/Province/Region</label>:</div>
<div style="float:left;width:60%;"><script language="javascript" type="text/javascript">//<![CDATA[
<!--
var originalOrder = '1';
var originalPos = 'USA';
var states = new Array(); // array in the format [key,value,text]
states[0] = new Array( 'AFG','none','none' );
states[1] = new Array( 'ALB','none','none' );
states[2] = new Array( 'DZA','none','none' );
states[3] = new Array( 'ASM','none','none' );
states[4] = new Array( 'AND','none','none' );
states[5] = new Array( 'AGO','none','none' );
states[6] = new Array( 'AIA','none','none' );
states[7] = new Array( 'ATA','none','none' );
states

= new Array( 'ATG','none','none' );
states[9] = new Array( 'ARG','none','none' );
states[10] = new Array( 'ARM','none','none' );
states[11] = new Array( 'ABW','none','none' );
states[12] = new Array( 'AUS','AT','Australian Capital Territory' );
states[13] = new Array( 'AUS','NW','New South Wales' );
states[14] = new Array( 'AUS','NT','Northern Territory' );
states[15] = new Array( 'AUS','QL','Queensland' );
states[16] = new Array( 'AUS','SA','South Australia' );
states[17] = new Array( 'AUS','TA','Tasmania' );
states[18] = new Array( 'AUS','VI','Victoria' );
states[19] = new Array( 'AUS','WA','Western Australia' );
states[20] = new Array( 'AUT','none','none' );
states[21] = new Array( 'AZE','none','none' );
states[22] = new Array( 'BHS','none','none' );
states[23] = new Array( 'BHR','none','none' );
states[24] = new Array( 'BGD','none','none' );
states[25] = new Array( 'BRB','none','none' );
states[26] = new Array( 'BLR','none','none' );
states[27] = new Array( 'BEL','none','none' );
states[28] = new Array( 'BLZ','none','none' );
states[29] = new Array( 'BEN','none','none' );
states[30] = new Array( 'BMU','none','none' );
states[31] = new Array( 'BTN','none','none' );
states[32] = new Array( 'BOL','none','none' );
states[33] = new Array( 'BIH','none','none' );
states[34] = new Array( 'BWA','none','none' );
states[35] = new Array( 'BVT','none','none' );
states[36] = new Array( 'BRA','AC','Acre' );
states[37] = new Array( 'BRA','AL','Alagoas' );
states[38] = new Array( 'BRA','AP','Amapá' );
states[39] = new Array( 'BRA','AM','Amazonas' );
states[40] = new Array( 'BRA','BA','BahÃa' );
states[41] = new Array( 'BRA','CE','Ceará' );
states[42] = new Array( 'BRA','DF','Distrito Federal' );
states[43] = new Array( 'BRA','ES','Espirito Santo' );
states[44] = new Array( 'BRA','GO','Goiás' );
states[45] = new Array( 'BRA','MA','Maranhão' );
states[46] = new Array( 'BRA','MT','Mato Grosso' );
states[47] = new Array( 'BRA','MS','Mato Grosso do Sul' );
states[48] = new Array( 'BRA','MG','Minas GeraÃs' );
states[49] = new Array( 'BRA','
PR','Paraná' );
states[50] = new Array( 'BRA','PB','ParaÃba' );
states[51] = new Array( 'BRA','PA','Pará' );
states[52] = new Array( 'BRA','
PR','Pernambuco' );
states[53] = new Array( 'BRA','PI','PiauÃ' );
states[54] = new Array( 'BRA','RN','Rio Grande do Norte' );
states[55] = new Array( 'BRA','RS','Rio Grande do Sul' );
states[56] = new Array( 'BRA','RJ','Rio de Janeiro' );
states[57] = new Array( 'BRA','RO','Rondônia' );
states[58] = new Array( 'BRA','RR','Roraima' );
states[59] = new Array( 'BRA','SC','Santa Catarina' );
states[60] = new Array( 'BRA','SE','Sergipe' );
states[61] = new Array( 'BRA','SP','São Paulo' );
states[62] = new Array( 'BRA','TO','Tocantins' );
states[63] = new Array( 'IOT','none','none' );
states[64] = new Array( 'BRN','none','none' );
states[65] = new Array( 'BGR','none','none' );
states[66] = new Array( 'BFA','none','none' );
states[67] = new Array( 'BDI','none','none' );
states[68] = new Array( 'KHM','none','none' );
states[69] = new Array( 'CMR','none','none' );
states[70] = new Array( 'CAN','AB','Alberta' );
states[71] = new Array( 'CAN','BC','British Columbia' );
states[72] = new Array( 'CAN','MB','Manitoba' );
states[73] = new Array( 'CAN','NB','New Brunswick' );
states[74] = new Array( 'CAN','NL','Newfoundland and Labrador' );
states[75] = new Array( 'CAN','NT','Northwest Territories' );
states[76] = new Array( 'CAN','NS','Nova Scotia' );
states[77] = new Array( 'CAN','NU','Nunavut' );
states[78] = new Array( 'CAN','ON','Ontario' );
states[79] = new Array( 'CAN','PE','Prince Edward Island' );
states[80] = new Array( 'CAN','QC','Quebec' );
states[81] = new Array( 'CAN','SK','Saskatchewan' );
states[82] = new Array( 'CAN','YT','Yukon' );
states[83] = new Array( 'CPV','none','none' );
states[84] = new Array( 'CYM','none','none' );
states[85] = new Array( 'CAF','none','none' );
states[86] = new Array( 'TCD','none','none' );
states[87] = new Array( 'CHL','none','none' );
states[88] = new Array( 'CHN','AN','Anhui' );
states[89] = new Array( 'CHN','BE','Beijing' );
states[90] = new Array( 'CHN','FJ','Fujian' );
states[91] = new Array( 'CHN','GU','Gansu' );
states[92] = new Array( 'CHN','GU','Guangdong' );
states[93] = new Array( 'CHN','GZ','Guangxi Zhuang' );
states[94] = new Array( 'CHN','GI','Guizhou' );
states[95] = new Array( 'CHN','HA','Hainan' );
states[96] = new Array( 'CHN','HE','Hebei' );
states[97] = new Array( 'CHN','HG','Heilongjiang' );
states[98] = new Array( 'CHN','HN','Henan' );
states[99] = new Array( 'CHN','HI','Hubei' );
states[100] = new Array( 'CHN','HU','Hunan' );
states[101] = new Array( 'CHN','JI','Jiangsu' );
states[102] = new Array( 'CHN','JX','Jiangxi' );
states[103] = new Array( 'CHN','JN','Jilin' );
states[104] = new Array( 'CHN','LI','Liaoning' );
states[105] = new Array( 'CHN','NM','Nei Mongol' );
states[106] = new Array( 'CHN','NH','Ningxia Hui' );
states[107] = new Array( 'CHN','QI','Qinghai' );
states[108] = new Array( 'CHN','SH','Shaanxi' );
states[109] = new Array( 'CHN','SG','Shandong' );
states[110] = new Array( 'CHN','SI','Shanghai' );
states[111] = new Array( 'CHN','SX','Shanxi' );
states[112] = new Array( 'CHN','SN','Sichuan' );
states[113] = new Array( 'CHN','TI','Tianjin' );
states[114] = new Array( 'CHN','XU','Xinjiang Uygur' );
states[115] = new Array( 'CHN','XI','Xizang' );
states[116] = new Array( 'CHN','YU','Yunnan' );
states[117] = new Array( 'CHN','ZH','Zhejiang' );
states[118] = new Array( 'CXR','none','none' );
states[119] = new Array( 'CCK','none','none' );
states[120] = new Array( 'COL','none','none' );
states[121] = new Array( 'COM','none','none' );
states[122] = new Array( 'COG','none','none' );
states[123] = new Array( 'COK','none','none' );
states[124] = new Array( 'CRI','none','none' );
states[125] = new Array( 'CIV','none','none' );
states[126] = new Array( 'HRV','none','none' );
states[127] = new Array( 'CUB','none','none' );
states[128] = new Array( 'CYP','none','none' );
states[129] = new Array( 'CZE','none','none' );
states[130] = new Array( 'DNK','none','none' );
states[131] = new Array( 'DJI','none','none' );
states[132] = new Array( 'DMA','none','none' );
states[133] = new Array( 'DOM','none','none' );
states[134] = new Array( 'TMP','none','none' );
states[135] = new Array( 'ECU','none','none' );
states[136] = new Array( 'EGY','none','none' );
states[137] = new Array( 'SLV','none','none' );
states[138] = new Array( 'GNQ','none','none' );
states[139] = new Array( 'ERI','none','none' );
states[140] = new Array( 'EST','none','none' );
states[141] = new Array( 'ETH','none','none' );
states[142] = new Array( 'FLK','none','none' );
states[143] = new Array( 'FRO','none','none' );
states[144] = new Array( 'FJI','none','none' );
states[145] = new Array( 'FIN','none','none' );
states[146] = new Array( 'FRA','none','none' );
states[147] = new Array( 'FXX','none','none' );
states[148] = new Array( 'GUF','none','none' );
states[149] = new Array( 'PYF','none','none' );
states[150] = new Array( 'ATF','none','none' );
states[151] = new Array( 'GAB','none','none' );
states[152] = new Array( 'GMB','none','none' );
states[153] = new Array( 'GEO','none','none' );
states[154] = new Array( 'DEU','none','none' );
states[155] = new Array( 'GHA','none','none' );
states[156] = new Array( 'GIB','none','none' );
states[157] = new Array( 'GRC','none','none' );
states[158] = new Array( 'GRL','none','none' );
states[159] = new Array( 'GRD','none','none' );
states[160] = new Array( 'GLP','none','none' );
states[161] = new Array( 'GUM','none','none' );
states[162] = new Array( 'GTM','none','none' );
states[163] = new Array( 'GIN','none','none' );
states[164] = new Array( 'GNB','none','none' );
states[165] = new Array( 'GUY','none','none' );
states[166] = new Array( 'HTI','none','none' );
states[167] = new Array( 'HMD','none','none' );
states[168] = new Array( 'HND','none','none' );
states[169] = new Array( 'HKG','none','none' );
states[170] = new Array( 'HUN','none','none' );
states[171] = new Array( 'ISL','none','none' );
states[172] = new Array( 'IND','none','none' );
states[173] = new Array( 'IDN','none','none' );
states[174] = new Array( 'IRN','none','none' );
states[175] = new Array( 'IRQ','none','none' );
states[176] = new Array( 'IRL','none','none' );
states[177] = new Array( 'ISR','none','none' );
states[178] = new Array( 'ITA','none','none' );
states[179] = new Array( 'JAM','none','none' );
states[180] = new Array( 'JPN','none','none' );
states[181] = new Array( 'JOR','none','none' );
states[182] = new Array( 'KAZ','none','none' );
states[183] = new Array( 'KEN','none','none' );
states[184] = new Array( 'KIR','none','none' );
states[185] = new Array( 'PRK','none','none' );
states[186] = new Array( 'KOR','none','none' );
states[187] = new Array( 'KWT','none','none' );
states[188] = new Array( 'KGZ','none','none' );
states[189] = new Array( 'LAO','none','none' );
states[190] = new Array( 'LVA','none','none' );
states[191] = new Array( 'LBN','none','none' );
states[192] = new Array( 'LSO','none','none' );
states[193] = new Array( 'LBR','none','none' );
states[194] = new Array( 'LBY','none','none' );
states[195] = new Array( 'LIE','none','none' );
states[196] = new Array( 'LTU','none','none' );
states[197] = new Array( 'LUX','none','none' );
states[198] = new Array( 'MAC','none','none' );
states[199] = new Array( 'MKD','none','none' );
states[200] = new Array( 'MDG','none','none' );
states[201] = new Array( 'MWI','none','none' );
states[202] = new Array( 'MYS','none','none' );
states[203] = new Array( 'MDV','none','none' );
states[204] = new Array( 'MLI','none','none' );
states[205] = new Array( 'MLT','none','none' );
states[206] = new Array( 'MHL','none','none' );
states[207] = new Array( 'MTQ','none','none' );
states[208] = new Array( 'MRT','none','none' );
states[209] = new Array( 'MUS','none','none' );
states[210] = new Array( 'MYT','none','none' );
states[211] = new Array( 'MEX','AG','Aguascalientes' );
states[212] = new Array( 'MEX','BN','Baja California Norte' );
states[213] = new Array( 'MEX','BS','Baja California Sur' );
states[214] = new Array( 'MEX','CA','Campeche' );
states[215] = new Array( 'MEX','CS','Chiapas' );
states[216] = new Array( 'MEX','CH','Chihuahua' );
states[217] = new Array( 'MEX','CO','Coahuila' );
states[218] = new Array( 'MEX','CM','Colima' );
states[219] = new Array( 'MEX','DF','Distrito Federal' );
states[220] = new Array( 'MEX','DO','Durango' );
states[221] = new Array( 'MEX','GO','Guanajuato' );
states[222] = new Array( 'MEX','GU','Guerrero' );
states[223] = new Array( 'MEX','HI','Hidalgo' );
states[224] = new Array( 'MEX','JA','Jalisco' );
states[225] = new Array( 'MEX','EM','México (Estado de)' );
states[226] = new Array( 'MEX','MI','Michoacán' );
states[227] = new Array( 'MEX','MO','Morelos' );
states[228] = new Array( 'MEX','NY','Nayarit' );
states[229] = new Array( 'MEX','NL','Nuevo León' );
states[230] = new Array( 'MEX','OA','Oaxaca' );
states[231] = new Array( 'MEX','PU','Puebla' );
states[232] = new Array( 'MEX','QU','Querétaro' );
states[233] = new Array( 'MEX','QR','Quintana Roo' );
states[234] = new Array( 'MEX','SP','San Luis PotosÃ' );
states[235] = new Array( 'MEX','SI','Sinaloa' );
states[236] = new Array( 'MEX','SO','Sonora' );
states[237] = new Array( 'MEX','TA','Tabasco' );
states[238] = new Array( 'MEX','TM','Tamaulipas' );
states[239] = new Array( 'MEX','TX','Tlaxcala' );
states[240] = new Array( 'MEX','VZ','Veracruz' );
states[241] = new Array( 'MEX','YU','Yucatán' );
states[242] = new Array( 'MEX','ZA','Zacatecas' );
states[243] = new Array( 'FSM','none','none' );
states[244] = new Array( 'MDA','none','none' );
states[245] = new Array( 'MCO','none','none' );
states[246] = new Array( 'MNG','none','none' );
states[247] = new Array( 'MSR','none','none' );
states[248] = new Array( 'MAR','none','none' );
states[249] = new Array( 'MOZ','none','none' );
states[250] = new Array( 'MMR','none','none' );
states[251] = new Array( 'NAM','none','none' );
states[252] = new Array( 'NRU','none','none' );
states[253] = new Array( 'NPL','none','none' );
states[254] = new Array( 'NLD','none','none' );
states[255] = new Array( 'ANT','none','none' );
states[256] = new Array( 'NCL','none','none' );
states[257] = new Array( 'NZL','none','none' );
states[258] = new Array( 'NIC','none','none' );
states[259] = new Array( 'NER','none','none' );
states[260] = new Array( 'NGA','none','none' );
states[261] = new Array( 'NIU','none','none' );
states[262] = new Array( 'NFK','none','none' );
states[263] = new Array( 'MNP','none','none' );
states[264] = new Array( 'NOR','none','none' );
states[265] = new Array( 'OMN','none','none' );
states[266] = new Array( 'PAK','none','none' );
states[267] = new Array( 'PLW','none','none' );
states[268] = new Array( 'PAN','none','none' );
states[269] = new Array( 'PNG','none','none' );
states[270] = new Array( 'PRY','none','none' );
states[271] = new Array( 'PER','none','none' );
states[272] = new Array( 'PHL','none','none' );
states[273] = new Array( 'PCN','none','none' );
states[274] = new Array( 'POL','none','none' );
states[275] = new Array( 'PRT','none','none' );
states[276] = new Array( 'PRI','none','none' );
states[277] = new Array( 'QAT','none','none' );
states[278] = new Array( 'REU','none','none' );
states[279] = new Array( 'ROM','none','none' );
states[280] = new Array( 'RUS','none','none' );
states[281] = new Array( 'RWA','none','none' );
states[282] = new Array( 'KNA','none','none' );
states[283] = new Array( 'LCA','none','none' );
states[284] = new Array( 'VCT','none','none' );
states[285] = new Array( 'WSM','none','none' );
states[286] = new Array( 'SMR','none','none' );
states[287] = new Array( 'STP','none','none' );
states[288] = new Array( 'SAU','none','none' );
states[289] = new Array( 'SEN','none','none' );
states[290] = new Array( 'SYC','none','none' );
states[291] = new Array( 'SLE','none','none' );
states[292] = new Array( 'SGP','none','none' );
states[293] = new Array( 'SVK','none','none' );
states[294] = new Array( 'SVN','none','none' );
states[295] = new Array( 'SLB','none','none' );
states[296] = new Array( 'SOM','none','none' );
states[297] = new Array( 'ZAF','none','none' );
states[298] = new Array( 'SGS','none','none' );
states[299] = new Array( 'ESP','none','none' );
states[300] = new Array( 'LKA','none','none' );
states[301] = new Array( 'SHN','none','none' );
states[302] = new Array( 'SPM','none','none' );
states[303] = new Array( 'SDN','none','none' );
states[304] = new Array( 'SUR','none','none' );
states[305] = new Array( 'SJM','none','none' );
states[306] = new Array( 'SWZ','none','none' );
states[307] = new Array( 'SWE','none','none' );
states[308] = new Array( 'CHE','none','none' );
states[309] = new Array( 'SYR','none','none' );
states[310] = new Array( 'TWN','none','none' );
states[311] = new Array( 'TJK','none','none' );
states[312] = new Array( 'TZA','none','none' );
states[313] = new Array( 'THA','none','none' );
states[314] = new Array( 'TGO','none','none' );
states[315] = new Array( 'TKL','none','none' );
states[316] = new Array( 'TON','none','none' );
states[317] = new Array( 'TTO','none','none' );
states[318] = new Array( 'TUN','none','none' );
states[319] = new Array( 'TUR','none','none' );
states[320] = new Array( 'TKM','none','none' );
states[321] = new Array( 'TCA','none','none' );
states[322] = new Array( 'TUV','none','none' );
states[323] = new Array( 'UGA','none','none' );
states[324] = new Array( 'UKR','none','none' );
states[325] = new Array( 'ARE','none','none' );
states[326] = new Array( 'GBR','EN','England' );
states[327] = new Array( 'GBR','NI','Northern Ireland' );
states[328] = new Array( 'GBR','SD','Scotland' );
states[329] = new Array( 'GBR','WS','Wales' );
states[330] = new Array( 'USA','AL','Alabama' );
states[331] = new Array( 'USA','AK','Alaska' );
states[332] = new Array( 'USA','AZ','Arizona' );
states[333] = new Array( 'USA','AR','Arkansas' );
states[334] = new Array( 'USA','CA','California' );
states[335] = new Array( 'USA','CO','Colorado' );
states[336] = new Array( 'USA','CT','Connecticut' );
states[337] = new Array( 'USA','DE','Delaware' );
states[338] = new Array( 'USA','DC','District Of Columbia' );
states[339] = new Array( 'USA','FL','Florida' );
states[340] = new Array( 'USA','GA','Georgia' );
states[341] = new Array( 'USA','HI','Hawaii' );
states[342] = new Array( 'USA','ID','Idaho' );
states[343] = new Array( 'USA','IL','Illinois' );
states[344] = new Array( 'USA','IN','Indiana' );
states[345] = new Array( 'USA','IA','Iowa' );
states[346] = new Array( 'USA','KS','Kansas' );
states[347] = new Array( 'USA','KY','Kentucky' );
states[348] = new Array( 'USA','LA','Louisiana' );
states[349] = new Array( 'USA','ME','Maine' );
states[350] = new Array( 'USA','MD','Maryland' );
states[351] = new Array( 'USA','MA','Massachusetts' );
states[352] = new Array( 'USA','MI','Michigan' );
states[353] = new Array( 'USA','MN','Minnesota' );
states[354] = new Array( 'USA','MS','Mississippi' );
states[355] = new Array( 'USA','MO','Missouri' );
states[356] = new Array( 'USA','MT','Montana' );
states[357] = new Array( 'USA','NE','Nebraska' );
states[358] = new Array( 'USA','NV','Nevada' );
states[359] = new Array( 'USA','NH','New Hampshire' );
states[360] = new Array( 'USA','NJ','New Jersey' );
states[361] = new Array( 'USA','NM','New Mexico' );
states[362] = new Array( 'USA','NY','New York' );
states[363] = new Array( 'USA','NC','North Carolina' );
states[364] = new Array( 'USA','ND','North Dakota' );
states[365] = new Array( 'USA','OH','Ohio' );
states[366] = new Array( 'USA','OK','Oklahoma' );
states[367] = new Array( 'USA','OR','Oregon' );
states[368] = new Array( 'USA','PA','Pennsylvania' );
states[369] = new Array( 'USA','RI','Rhode Island' );
states[370] = new Array( 'USA','SC','South Carolina' );
states[371] = new Array( 'USA','SD','South Dakota' );
states[372] = new Array( 'USA','TN','Tennessee' );
states[373] = new Array( 'USA','TX','Texas' );
states[374] = new Array( 'USA','UT','Utah' );
states[375] = new Array( 'USA','VT','Vermont' );
states[376] = new Array( 'USA','VA','Virginia' );
states[377] = new Array( 'USA','WA','Washington' );
states[378] = new Array( 'USA','WV','West Virginia' );
states[379] = new Array( 'USA','WI','Wisconsin' );
states[380] = new Array( 'USA','WY','Wyoming' );
states[381] = new Array( 'UMI','none','none' );
states[382] = new Array( 'URY','none','none' );
states[383] = new Array( 'UZB','none','none' );
states[384] = new Array( 'VUT','none','none' );
states[385] = new Array( 'VAT','none','none' );
states[386] = new Array( 'VEN','none','none' );
states[387] = new Array( 'VNM','none','none' );
states[388] = new Array( 'VGB','none','none' );
states[389] = new Array( 'VIR','none','none' );
states[390] = new Array( 'WLF','none','none' );
states[391] = new Array( 'ESH','none','none' );
states[392] = new Array( 'YEM','none','none' );
states[393] = new Array( 'YUG','none','none' );
states[394] = new Array( 'ZAR','none','none' );
states[395] = new Array( 'ZMB','none','none' );
states[396] = new Array( 'ZWE','none','none' );
function changeStateList() {
var selected_country = null;
for (var i=0; i<document.adminForm.country.length; i++)
if (document.adminForm.country[i].selected)
selected_country = document.adminForm.country[i].value;
changeDynaList('state',states,selected_country , originalPos, originalOrder);
}
writeDynaList( 'class="inputbox" name="state" size="1" id="state"', states, originalPos, originalPos, originalPos );
//-->
//]]></script><noscript>
<select class="inputbox" name="state" size="" id="state">
<option value="0" >Select
</option><option value="NONE" >not listed
</option><option value="1" >------- Australia -------
</option><option value="AT" >Australian Capital Territory
</option><option value="NW" >New South Wales
</option><option value="NT" >Northwest Territories
</option><option value="QL" >Queensland
</option><option value="SA" >South Australia
</option><option value="TA" >Tabasco
</option><option value="VI" >Victoria
</option><option value="WA" >Washington
</option><option value="2" >------- Brazil -------
</option><option value="AC" >Acre
</option><option value="AL" >Alabama
</option><option value="AP" >Amapá
</option><option value="AM" >Amazonas
</option><option value="BA" >BahÃa
</option><option value="CE" >Ceará
</option><option value="DF" >Distrito Federal
</option><option value="ES" >Espirito Santo
</option><option value="GO" >Guanajuato
</option><option value="MA" >Massachusetts
</option><option value="MT" >Montana
</option><option value="MS" >Mississippi
</option><option value="MG" >Minas GeraÃs
</option><option value="PA" >Pennsylvania
</option><option value="PB" >ParaÃba
</option><option value="
PR" >Pernambuco
</option><option value="PI" >PiauÃ
</option><option value="RJ" >Rio de Janeiro
</option><option value="RN" >Rio Grande do Norte
</option><option value="RS" >Rio Grande do Sul
</option><option value="RO" >Rondônia
</option><option value="RR" >Roraima
</option><option value="SC" >South Carolina
</option><option value="SP" >San Luis PotosÃ
</option><option value="SE" >Sergipe
</option><option value="TO" >Tocantins
</option><option value="3" >------- Canada -------
</option><option value="AB" >Alberta
</option><option value="BC" >British Columbia
</option><option value="MB" >Manitoba
</option><option value="NB" >New Brunswick
</option><option value="NL" >Nuevo León
</option><option value="NS" >Nova Scotia
</option><option value="NU" >Nunavut
</option><option value="ON" >Ontario
</option><option value="PE" >Prince Edward Island
</option><option value="QC" >Quebec
</option><option value="SK" >Saskatchewan
</option><option value="YT" >Yukon
</option><option value="4" >------- China -------
</option><option value="AN" >Anhui
</option><option value="BE" >Beijing
</option><option value="FJ" >Fujian
</option><option value="GU" >Guerrero
</option><option value="GZ" >Guangxi Zhuang
</option><option value="GI" >Guizhou
</option><option value="HA" >Hainan
</option><option value="HE" >Hebei
</option><option value="HG" >Heilongjiang
</option><option value="HN" >Henan
</option><option value="HI" >Hawaii
</option><option value="HU" >Hunan
</option><option value="JI" >Jiangsu
</option><option value="JX" >Jiangxi
</option><option value="JN" >Jilin
</option><option value="LI" >Liaoning
</option><option value="NM" >New Mexico
</option><option value="NH" >New Ham