			function makeSame()
				{
					if (document.getElementById('chkSame').checked)
						{
							//document.getElementById('txtMailAddr').disabled = true;
							//document.getElementById('txtMailCity').disabled = true;
							//document.getElementById('txtMailState').disabled = true;
							//document.getElementById('txtMailZip').disabled = true;
							//document.getElementById('txtMailCty').disabled = true;
							
							document.getElementById('txtMailAddr').value = document.getElementById('txtPhysicalAddr').value;
							document.getElementById('txtMailCity').value = document.getElementById('txtPhysicalCity').value;
							document.getElementById('txtMailState').value = document.getElementById('txtPhysicalState').value;
							document.getElementById('txtMailZip').value = document.getElementById('txtPhysicalZip').value;
						}
					else
						{
							document.getElementById('txtMailAddr').disabled = false;
							document.getElementById('txtMailCity').disabled = false;
							document.getElementById('txtMailState').disabled = false;
							document.getElementById('txtMailZip').disabled = false;
							
							document.getElementById('txtMailAddr').value = '';
							document.getElementById('txtMailCity').value = '';
							document.getElementById('txtMailState').value = '';
							document.getElementById('txtMailZip').value = '';
						}
				}
			
			function valForm()
				{
					var msg = '';
					var valid = true;
					
					if (document.getElementById('txtLegalName').value == '')
						{
							msg += 'Agency Legal Name is required.\n';
							valid = false;
						}
					
					if (document.getElementById('ddlAgencyType').value == '')
						{
							msg += 'Type of Agency is not selected.\n';
							valid = false;
						}
					
					if (document.getElementById('txtPhysicalAddr').value == '')
						{
							msg += 'Physical Address: Address is required.\n';
							valid = false;
						}
					
					if (document.getElementById('txtPhysicalCity').value == '')
						{
							msg += 'Physical Address: City is required.\n';
							valid = false;
						}
					
					if (document.getElementById('txtPhysicalState').value == '')
						{
							msg += 'Physical Address: State is required.\n';
							valid = false;
						}
					
					if (document.getElementById('txtPhysicalZip').value == '')
						{
							msg += 'Physical Address: Zip is required.\n';
							valid = false;
						}
					
					if (document.getElementById('txtPhysicalCty').value == '')
						{
							msg += 'Physical Address: County is required.\n';
							valid = false;
						}
					
					if (document.getElementById('txtPhone').value == '')
						{
							msg += 'Physical Address: Phone is required.\n';
							valid = false;
						}
					
					if (document.getElementById('txtFax').value == '')
						{
							msg += 'Physical Address: Fax is required.\n';
							valid = false;
						}
					
					if (document.getElementById('txtEmail').value == '')
						{
							msg += 'Physical Address: E-mail Address is required.\n';
							valid = false;
						}
					
					if (!document.getElementById('chkSame').checked)
						{
							if (document.getElementById('txtMailAddr').value == '')
								{
									msg += 'Mailing Address: Address is required.\n';
									valid = false;
								}
							
							if (document.getElementById('txtMailCity').value == '')
								{
									msg += 'Mailing Address: City is required.\n';
									valid = false;
								}
							
							if (document.getElementById('txtMailState').value == '')
								{
									msg += 'Mailing Address: State is required.\n';
									valid = false;
								}
							
							if (document.getElementById('txtMailZip').value == '')
								{
									msg += 'Mailing Address: Zip is required.\n';
									valid = false;
								}
						}
					else
						{
							document.getElementById('txtMailAddr').value = document.getElementById('txtPhysicalAddr').value;
							document.getElementById('txtMailCity').value = document.getElementById('txtPhysicalCity').value;
							document.getElementById('txtMailState').value = document.getElementById('txtPhysicalState').value;
							document.getElementById('txtMailZip').value = document.getElementById('txtPhysicalZip').value;
						}
					
					if (document.getElementById('ddlLocation').value == '')
						{
							msg += 'Do you have more that one location? is not selected.\n';
							valid = false;
						}
					
					if (document.getElementById('txtOwnerName').value == '')
						{
							msg += 'Name is required under appointed with the Company.\n';
							valid = false;
						}
					
					if (document.getElementById('txtOwnerTitle').value == '')
						{
							msg += 'Title is required under appointed with the Company.\n';
							valid = false;
						}
					
					if (document.getElementById('txtOwnerDob').value == '')
						{
							msg += 'Date of Birth is required under appointed with the Company.\n';
							valid = false;
						}
					
					if (document.getElementById('txtOwnerDoi').value == '')
						{
							msg += 'DOI License No. is required under appointed with the Company.\n';
							valid = false;
						}
					
					if (document.getElementById('txtOwnerEmail').value == '')
						{
							msg += 'E-mail Address is required under appointed with the Company.\n';
							valid = false;
						}
					
					if (document.getElementById('txtBusYears').value == '')
						{
							msg += 'Year in Business is required under Addition Business Information.\n';
							valid = false;
						}
					
					if (document.getElementById('txtNumAgents').value == '')
						{
							msg += '# of Licensed Agents is required under Addition Business Information.\n';
							valid = false;
						}
					
					if (document.getElementById('txtCSR').value == '')
						{
							msg += 'Number of CSRs is required under Addition Business Information.\n';
							valid = false;
						}
					
					if (document.getElementById('txtCarrier1').value == '' || document.getElementById('txtCVolume1').value == '' || document.getElementById('txtPVolume1').value == '' || document.getElementById('txtLRatio1').value == '')
						{
							msg += 'Carrier Information is required under Main Homeowners Carriers.\n';
							valid = false;
						}
					
					if (document.getElementById('txtHO3new').value == '')
						{
							msg += 'HO3 New is required under Homeowner and Dwelling Fire Policies.\n';
							valid = false;
						}
					
					if (document.getElementById('txtHO3rewrite').value == '')
						{
							msg += 'HO3 Rewrite is required under Homeowner and Dwelling Fire Policies.\n';
							valid = false;
						}
					
					if (document.getElementById('txtHO6new').value == '')
						{
							msg += 'HO6 New is required under Homeowner and Dwelling Fire Policies.\n';
							valid = false;
						}
					
					if (document.getElementById('txtHO6rewrite').value == '')
						{
							msg += 'HO6 Rewrite is required under Homeowner and Dwelling Fire Policies.\n';
							valid = false;
						}
					
					if (document.getElementById('txtDP3new').value == '')
						{
							msg += 'DP3 New is required under Homeowner and Dwelling Fire Policies.\n';
							valid = false;
						}
					
					if (document.getElementById('txtDP3rewrite').value == '')
						{
							msg += 'DP3 Rewrite is required under Homeowner and Dwelling Fire Policies.\n';
							valid = false;
						}
					
					if (document.getElementById('txtHO4new').value == '')
						{
							msg += 'HO4 New is required under Homeowner and Dwelling Fire Policies.\n';
							valid = false;
						}
					
					if (document.getElementById('txtHO4rewrite').value == '')
						{
							msg += 'HO4 Rewrite is required under Homeowner and Dwelling Fire Policies.\n';
							valid = false;
						}
					
					if (document.getElementById('txtHOPer').value == '')
						{
							msg += 'Percentage HO Business 1995 is required.\n';
							valid = false;
						}
					
					if (document.getElementById('txtPerLine').value == '')
						{
							msg += 'Approximate Personal Lines Property Premium is required.\n';
							valid = false;
						}
					
					if (document.getElementById('ddlRater').value == '')
						{
							msg += 'Comparative Rater is not selected.\n';
							valid = false;
						}
					
					if (document.getElementById('ddlSystem').value == '')
						{
							msg += 'Agency Management System is not selected.\n';
							valid = false;
						}
					
					if (!valid)
						{
							alert('Please correct the following error before submission:\n\n' + msg);
						}
					
					return valid;
				}
		
