<!--
function ErrorAction(){
if (bLoaded==false)
		{
			alert("Please allow time for the page to download completely before taking any actions.thank you!")
			return false;
		}
}
function fnShowTxt()
{
	if(document.getElementById("objShowTxt").innerHTML == "Can't find a market? Enter your own")
	{
	document.getElementById("objShowTxt").innerHTML = "Select City or submarket from list" ;
	document.getElementById("City").style.display = "none";
	document.getElementById("objCityTxt").style.display = "";	
	}
	else
	{
	document.getElementById("objShowTxt").innerHTML = "Can't find a market? Enter your own" ;
	document.getElementById("City").style.display = "";
	document.getElementById("objCityTxt").style.display = "none";
	}
}
function fnFocusTxt(obj)
{
	if (obj.value=='Enter a City name here')
		obj.value = ''
}
/* Get the Market areas */


function getMktAreaS(){
var iItems = document.form1.Country.options.length
var mktArea=document.form1.State 
f = document.form1.Country.value;

	if (f == "")
		{ document.form1.City.disabled = true; 
			for (p = mktArea.options.length-1; p > 0; p--){
				mktArea.options[p] = null
			}
		} 
	else 
		{ 
		document.form1.City.disabled = false; 
		for (p = mktArea.options.length-1; p > 0; p--){
			mktArea.options[p] = null
		}
			mktArea.options[0] = new Option(iItem[0][0].value, iItem[0][0].text)
		for (q = 1; q < iItem[f].length; q++) {
			mktArea.options[q] = new Option(iItem[f][q].value, iItem[f][q].text)
		}
		mktArea.options[0].selected = true
		getStatesS();
	}
}

function getStatesS() {
var State = document.form1.City;
var StateS = document.form1.City;
y = document.form1.State.value;
if (y != ""){
	for (s = State.options.length-1; s > 0; s--) {
		State.options[s] = null
	}
	State.options[0] = new Option (nItem[0][0][0].value, nItem[0][0][0].text)
    if (document.form1.Country.value == 2 ){
		if (document.form1.Country.options.selectedIndex !=2)
		{
			for (t = 2; t < nItem[document.form1.Country.value][y].length; t++) {
			State.options[t-1] = new Option (nItem[document.form1.Country.value][y][t].value, nItem[document.form1.Country.options.selectedIndex+1][y][t].text)
			}
		}
		else
		{
			for (t = 2; t < nItem[document.form1.Country.value][y].length; t++) {
			State.options[t-1] = new Option (nItem[document.form1.Country.value][y][t].value, nItem[document.form1.Country.options.selectedIndex][y][t].text)
			}
		}
	}    
    else
    {
	for (t = 1; t < nItem[document.form1.Country.value][y].length; t++) {
    //State.options[t] = new Option (nItem[document.form1.Country.value][y][t].value, nItem[document.form1.Country.options.selectedIndex][y][t].text)
    State.options[t] = new Option (nItem[document.form1.Country.value][y][t].value, nItem[document.form1.Country.value][y][t].text)
	}
	}
	State.options[0].selected = true
}else{
	for (s = State.options.length-1; s > 0; s--) {
		State.options[s] = null
	}
}}
function fnBeforeSubmit()
{
	if (bLoaded==false)
	{
		alert("Please allow time for the page to download completely before taking any actions.thank you!")
		return false;
	}
	with (document.form1){
	  if (Country.selectedIndex < 1){
		alert("Please select your location of country.");
		Country.focus();
		return false;
	  }
	  if (State.selectedIndex < 1){
		alert("Please select your location of City.");
		State.focus();
		return false;
	  }
	  
	  if (City.selectedIndex < 1)
	  {
			alert("Please select your location of main area.");
			City.focus();
		
		return false;
	  }
	  submit();
	  return (true);
	}
}
//-->

