<h1>Company Signup</h1>

{include_php file="shared_handle:companySignup.verifyAccount"}

<form name="companySignup1" method="post" action="index.php" style="margin:0px;">
<input type="hidden" name="pg" value="{$page.name}" />
<input type="hidden" name="no_expire" value="true" />

<table border="0" cellpadding="0" cellspacing="0"><tr><td>

<div class="chunk300">
	<h2 class="withBG">Company Info.</h2>
	
	<div id="addressInfo" style="display:block;">
	Company Name:
	<input type="text" name="company[name]" value="{$smarty.request.company.name}" class="textInput" style="width:120px;" /><br />
	
	Address:
	<input type="text" name="company[address1]" value="{$smarty.request.company.address1}" class="textInput" style="width:200px;" /><br />
	Line 2:
	<input type="text" name="company[address2]" value="{$smarty.request.company.address2}" class="textInput" style="width:200px;" /><br />

	City:
	<input type="text" name="company[city]" value="{$smarty.request.company.city}" class="textInput" style="width:200px;" /><br />

	State, Zip:
	<input type="text" name="company[state]" value="{$smarty.request.company.state}" class="textInput" style="width:30px;" maxlength="2" />
	<input type="text" name="company[zip]" value="{$smarty.request.company.zip}" class="textInput" style="width:50px;" /><br />

	Country:
	<input type="text" name="company[country]" value="{$smarty.request.company.country}" class="textInput" style="width:200px;" maxlength="30" /><br />

	{* -- phone commented out for now -- we can use the user's contact info --
		Phone:
		<input type="text" name="company[phone1]" value="{$smarty.request.company.phone1}" class="textInput" style="width:200px;" maxlength="80" /><br />
	
		Phone 2:
		<input type="text" name="company[phone2]" value="{$smarty.request.company.phone2}" class="textInput" style="width:200px;" maxlength="80" /><br />
	*}

	</div>
</div>

<div class="chunk300">
	<h2 class="withBG">Company Contact</h2>
		The logged in user will be marked as the primary company contact. If you want to use or create a different account for this purpose, log out and do so now.<br />
		<br />
		The following is the current user information that will be used as the primary contact for this company.<br />
		<div class="underline">&nbsp;</div>
		Full Name: <b>{$user->firstName} {$user->lastName}</b><br />
		Username: <b>{$user->username}</b><br />
		User ID: <b>{$user->id}</b><br />
		E-mail: <b>{$user->email}</b><br />
		Address:<br />
			<b>{$userProfile.address1}<br />
			{if $userProfile.address2}{$userProfile.address2}<br />{/if}
			{$userProfile.city}, {$userProfile.state} &nbsp;{$userProfile.zip}<br />
			{$userProfile.country}<br /></b>
	</div>
</div>

</td></tr></table>

<div id="fMatches" class="xFloat" style="padding:3px; background-color:#FFFFFF; border:#666666 1px solid;"></div>

{if $modules.spadeAutoComplete}
	<script language="JavaScript" src="{$modules.x}"></script>
	<script language="JavaScript" src="{$modules.spadeAutoComplete}"></script>
	<script language="JavaScript">
		var states = new Array('AL','AK','AS','AZ','AR','CA','CO','CT','DE','DC','FL','GA','GU',
					'HI','ID','IL','IN','IA','KS','KY','LA','ME','MH','MD','MA',
					'MI','MN','MS','MO','MT','NE','NV','NH','NJ','NM','NY','NC',
					'ND','OH','OK','OR','PW','PA','PR','RI','SC','SD','TN','TX',
					'UT','VT','USVI','VA','WA','WV','WI','WY','AB','BC','LB','MB',
					'NB','NF','NT','NS','ON','PE','PQ','SK','YT');
		
		var countries = new Array ('USA', 'Canada', 'Germany', 'UK', 'India', 'Albania', 'Algeria', 'Andorra', 'Angola', 'Anguilla', 'Antarctica', 'Antigua and Barbuda', 'Argentina', 'Armenia', 'Aruba', 'Australia', 'Austria', 'Azerbaijan', 'Bahamas', 'Bahrain', 'Bangladesh', 'Barbados', 'Belarus', 'Belgium', 'Belize', 'Benin', 'Bermuda', 'Bhutan', 'Bolivia', 'Bosnia and Herzegowina', 'Botswana', 'Bouvet Island', 'Brazil', 'British Ind. Ocean Terr', 'Brunei Darussalam', 'Bulgaria', 'Burkina Faso', 'Burundi', 'Cambodia', 'Cameroon', 'Cape Verde', 'Cayman Islands', 'Central African Rep.', 'Chad', 'Chile', 'China', 'Christmas Island', 'Cocoa (Keeling) Isl.', 'Colombia', 'Comoros', 'Congo', 'Cook Islands', 'Costa Rica', 'Cote Divoire', 'Hrvatska', 'Cyprus', 'Czech Republic', 'Denmark', 'Djibouti', 'Dominica', 'Dominican Republic', 'East Timor', 'Ecuador', 'Egypt', 'El Salvador', 'Equatorial Guinea', 'Eritrea', 'Estonia', 'Ethiopia', 'Falkland Isl. (Malvinas)', 'Faroe Islands', 'Fiji', 'Finland', 'France', 'French Guiana', 'French Polynesia', 'French Southern Terr.', 'Gabon', 'Gambia', 'Georgia', 'Ghana', 'Gibraltar', 'Greece', 'Greenland', 'Grenada', 'Guadeloupe', 'Guatemala', 'Guinea', 'Guinea-Bissau', 'Guyana', 'Haiti', 'Heard & McDonald Isl.', 'Honduras', 'Hong Kong', 'Hungary', 'Iceland', 'Indonesia', 'Ireland', 'Israel', 'Italy', 'Jamaica', 'Japan', 'Jordan', 'Kazakhstan', 'Kenya', 'Kiribati', 'Republic of Korea', 'Kuwait', 'Kyrgyzstan', 'Lao Peoples Dem. Rep.', 'Latvia', 'Lebanon', 'Lesotho', 'Liberia', 'Liechtenstein', 'Lithuania', 'Luxembourg', 'Macau', 'Macedonia', 'Madagascar', 'Malawi', 'Malaysia', 'Maldives', 'Mali', 'Malta', 'Marshall Islands', 'Martinique', 'Mauritania', 'Mauritius', 'Mayotte', 'Mexico', 'Micronesia: Fed. States of', 'Moldova: Republic of', 'Monaco', 'Mongolia', 'Montserrat', 'Morocco', 'Mozambique', 'Myanmar', 'Namibia', 'Nauru', 'Nepal', 'Netherlands', 'Netherlands Antilles', 'New Caledonia', 'New Zealand', 'Nicaragua', 'Niger', 'Nigeria', 'Niue', 'Norfolk Island', 'Northern Mariana Isl.', 'Norway', 'Oman', 'Pakistan', 'Palau', 'Panama', 'Papua New Guinea', 'Paraguay', 'Peru', 'Philippines', 'Pitcairn', 'Poland', 'Portugal', 'Qatar', 'Reunion', 'Romania', 'Russian Federation', 'Rwanda', 'Saint Kitts and Nevis', 'Saint Lucia', 'St. Vincent & Grenadines', 'Samoa', 'San Marino', 'Sao Tome and Principe', 'Saudi Arabia', 'Senegal', 'Seychelles', 'Sierra Leone', 'Singapore', 'Slovakia', 'Slovenia', 'Solomon Islands', 'Somalia', 'South Africa', 'S. Georgia & S. Sandwich Isl.', 'Spain', 'Sri Lanka', 'St. Helena', 'St. Pierre and Miquelon', 'Suriname', 'Svalbard & Jan Mayen Isl.', 'Swaziland', 'Sweden', 'Switzerland', 'Syrian Arab Republic', 'Taiwan', 'Tajikistan', 'Tanzania: United Rep. of', 'Thailand', 'Togo', 'Tokelau', 'Tonga', 'Trinidad and Tobago', 'Tunisia', 'Turkey', 'Turkmenistan', 'Turks and Caicos Islands', 'Tuvalu', 'Uganda', 'Ukraine', 'United Arab Emirates', 'US Minor Outlying Isl.', 'Uruguay', 'Uzbekistan', 'Vanuatu', 'Vatican City (Holy See)', 'Venezuela', 'Vietnam', 'Virgin Islands (British)', 'Wallis and Futuna Islands', 'Western Sahara', 'Yemen', 'Yugoslavia', 'Zaire', 'Zambia', 'Zimbabwe', 'Not Listed');

		initAutoComplete('company[state]', states, true);
		initAutoComplete('company[country]', countries, true);
	</script>
{/if}

</form>

