
var i1, i2;

function SplitFunction(DataStr) {
	var DataArr=DataStr.split(",");
		i1=DataArr[0];
		i2=DataArr[1];
}

function displayOtherSearch(frmObj) {
	if (frmObj.other.value=="") {
		alert("Choose a service");
		frmObj.other.focus();
		return false;
	}
	if (frmObj.state.value=="") {
		alert("Choose a state");
		document.frmSite.state.focus();
		return false;
	}

	var state=frmObj.state.value;
	//alert(state);
	var aVal=frmObj.other.value;
	SplitFunction(aVal);
	//alert(i1);
	//alert(i2);
	if (state=="") {
		//MenuServicesSubmit(i1,i2);
	} else {
		MenuServicesSubmit_state(i1,i2,state);

	}
}

var area = new Array("display all");

var category = new Array("","for sale", "to let", "foreclosures", "auctions");

var type = new Array("display all",
"residential houses",
"townhouses",
"apartments",
"luxury properties",
"vacant plots",
"commercial properties",
"farms",
"agricultural land",
"commercial land",
"land for development");

var price = new Array("display all",
"   less - 100000",
" 101000 - 200000",
" 201000 - 300000",
" 301000 - 400000",
" 401000 - 500000",
" 501000 - 600000",
" 601000 - 700000",
" 701000 - 800000",
" 801000 - 900000",
" 901000 -1000000",
"1000000 - more   ");

var currency = new Array("EUR Euro",
"USD United States Dollars",
"CAD Canada Dollars",
"GBP United Kingdom Pounds",
"DEM Germany Deutsche Marks",
"FRF France Francs",
"JPY Japan Yen",
"NLG Netherlands Guilders",
"ITL Italy Lire",
"CHF Switzerland Francs",
"DZD Algeria Dinars",
"ARS Argentina Pesos",
"AUD Australia Dollars",
"ATS Austria Schillings",
"BSD Bahamas Dollars",
"BBD Barbados Dollars",
"BEF Belgium Francs",
"BMD Bermuda Dollars",
"BRL Brazil Reais",
"BGN Bulgaria Leva",
"CAD Canada Dollars",
"CLP Chile Pesos",
"CNY China Yuan Renminbi",
"CYP Cyprus Pounds",
"CZK Czech Republic Koruny",
"DKK Denmark Kroner",
"NLG Dutch (Netherlands) Guilders",
"XCD Eastern Caribbean Dollars",
"EGP Egypt Pounds",
"EUR Euro",
"FJD Fiji Dollars",
"FIM Finland Markkaa",
"FRF France Francs",
"DEM Germany Deutsche Marks",
"XAU Gold Ounces",
"GRD Greece Drachmae",
"HKD Hong Kong Dollars",
"NLG Holland (Netherlands) Guilders",
"HUF Hungary Forint",
"ISK Iceland Kronur",
"INR India Rupees",
"IDR Indonesia Rupiahs",
"IEP Ireland Pounds",
"ILS Israel New Shekels",
"ITL Italy Lire",
"JMD Jamaica Dollars",
"JPY Japan Yen",
"JOD Jordan Dinars",
"KRW Korea (South) Won",
"LBP Lebanon Pounds",
"LUF Luxembourg Francs",
"MYR Malaysia Ringgits",
"MXN Mexico Pesos",
"NLG Netherlands Guilders",
"NZD New Zealand Dollars",
"NOK Norway Kroner",
"PKR Pakistan Rupees",
"XPD Palladium Ounces",
"PHP Philippines Pesos",
"XPT Platinum Ounces",
"PLN Poland Zlotych",
"PTE Portugal Escudos",
"ROL Romania Lei",
"RUR Russia Rubles",
"SAR Saudi Arabia Riyals",
"XAG Silver Ounces",
"SGD Singapore Dollars",
"SKK Slovakia Koruny",
"ZAR South Africa Rand",
"KRW South Korea Won",
"ESP Spain Pesetas",
"XDR Special Drawing Rights (IMF)",
"SDD Sudan Dinars",
"SEK Sweden Kronor",
"CHF Switzerland Francs",
"TWD Taiwan New Dollars",
"THB Thailand Baht",
"TTD Trinidad and Tobago Dollars",
"TRL Turkey Liras",
"GBP United Kingdom Pounds",
"USD United States Dollars",
"VEB Venezuela Bolivares",
"ZMK Zambia Kwacha",
"EUR Euro",
"XCD Eastern Caribbean Dollars",
"XDR Special Drawing Right (IMF)",
"XAG Silver Ounces",
"XAU Gold Ounces",
"XPD Palladium Ounces",
"XPT Platinum Ounces");

var other = new Array("Organisations/Associations",
"Estate Agents/Realtor Agents",
"Professionals/Artisans",
"Construction & Renovation",
"Garden & Home",
"Relocation Services");

function otherShow()
{
	document.frmOtherSearch.other.length = other.length;
	for ( var i = 0; i<= other.length-1; i++)
	{
		document.frmOtherSearch.other.options[i].text = other[i];
		document.frmOtherSearch.other.options[i].value = other[i];
	}
	document.frmOtherSearch.other.options[0].selected = true;
}

function natOption()
{
	areaShow();
	categoryShow();
	typeShow();
	priceShow();
	//otherShow();
}
function areaShow()
{
	document.frmAreaSearch.area.length = area.length;
	for ( var i = 0; i<= area.length-1; i++)
	{
		document.frmAreaSearch.area.options[i].text = area[i];
		document.frmAreaSearch.area.options[i].value = area[i];
	}
	document.frmAreaSearch.area.options[0].selected = true;
}
function categoryShow()
{
	document.frmAreaSearch.category.length = category.length;
	for ( var i = 1; i<= category.length-1; i++)
	{
		document.frmAreaSearch.category.options[i].text = category[i];
		document.frmAreaSearch.category.options[i].value = category[i];
	}
	document.frmAreaSearch.category.options[0].selected = true;
}
function typeShow()
{
	document.frmAreaSearch.type.length = type.length;
	for ( var i = 0; i<= type.length-1; i++)
	{
		document.frmAreaSearch.type.options[i].text = type[i];
		document.frmAreaSearch.type.options[i].value = type[i];
	}
	document.frmAreaSearch.type.options[0].selected = true;
}
function priceShow()
{
	document.frmAreaSearch.price.length = price.length;
	for ( var i = 0; i<= price.length-1; i++)
	{
		document.frmAreaSearch.price.options[i].text = price[i];
		document.frmAreaSearch.price.options[i].value = price[i];
	}
	document.frmAreaSearch.price.options[0].selected = true;
}
function currencyShow()
{
	document.frmAreaSearch.currency.length = currency.length;
	for ( var i = 0; i<= currency.length-1; i++)
	{
		document.frmAreaSearch.currency.options[i].text = currency[i];
		document.frmAreaSearch.currency.options[i].value = currency[i];
	}
	document.frmAreaSearch.currency.options[0].selected = true;
}
function write_result(id,the_result)
{
	d=document;
	re=d.all?d.all[id]:d.getElementById(id);
	re.innerHTML=the_result;
}
function displayClear()
{
	var str = "<h6 id='main'>FREE ADVERTISING</h6>";
	str = str + "<table border=0 cellpadding=0 cellspacing=0 width='80%'>";
	str = str + "<tr><td width='20%'>";
	str = str + "<p id='left'>";
	str = str + "<a href='international/services.asp' target='body'";
	str = str + "><img src='../images/icon_prop.gif' align='left' id='prop' />";
	str = str + "<br />Properties, Professionals,<br />Artisans,Products & services</a></p>";
	str = str + "</td></tr>";
	str = str + "<tr><td>";
	str = str + "<p id='left'>";
	str = str + "<a href='international/services.asp#support' target='body'";
	str = str + "><img src='../images/icon_up.gif' align='left' id='up' />";
	str = str + "<br />Upload Pictures and<br />Video Clips --- Need Help?</a></p>";
	str = str + "</td></tr>";
	str = str + "<tr><td>";
	str = str + "<p id='left'>";
	str = str + "<a href='international/services.asp#property' target='body'";
	str = str + "><img src='../images/icon_agent.gif' align='left' id='agent' />";
	str = str + "<br />Multi-Property Portfolio System  (For Agents)</a></p>";
	str = str + "</td></tr>";
	str = str + "<tr><td>";
	str = str + "<p id='left'>";
	str = str + "<a href='international/services.asp#business' target='body'";
	str = str + "><img src='../images/icon_bus.gif' align='left' id='bus' />";
	str = str + "<br />Your Own Independent<br />Business Using Property Online</a></p>";
	str = str + "</td></tr>";
	str = str + "<tr><td>";
	str = str + "<p id='left'>";
	str = str + "<a href='international/services.asp#web' target='body'";
	str = str + "><img src='../images/icon_web.gif' align='left' id='web' />";
	str = str + "<br />Your Own Website with E-Mail<br />Address For As Little As $5/m</a></p>";
	str = str + "</td></tr>";
	str = str + "</table>";
	write_result("result",str);
}


function propOption()
{
	categoryShow1();
	typeShow1();
}

function categoryShow1()
{
	document.frmContactInfo.category.length = category.length;
	for ( var i = 1; i<= category.length-1; i++)
	{
		document.frmContactInfo.category.options[i].text = category[i];
		document.frmContactInfo.category.options[i].value = category[i];
	}
	//document.frmContactInfo.category.options[0].selected = true;
}
function typeShow1()
{
	document.frmContactInfo.type.length = type.length;
	for ( var i = 1; i<= type.length-1; i++)
	{
		document.frmContactInfo.type.options[i].text = type[i];
		document.frmContactInfo.type.options[i].value = type[i];
	}
	//document.frmContactInfo.type.options[0].selected = true;
}
function currencyShow1()
{
	document.frmContactInfo.currency.length = currency.length;
	for ( var i = 1; i<= currency.length-1; i++)
	{
		document.frmContactInfo.currency.options[i].text = currency[i];
		document.frmContactInfo.currency.options[i].value = currency[i];
	}
	//document.frmContactInfo.currency.options[0].selected = true;
}


