/* common.js */
/*
     COOKIE CHECK
     FORM CHECK
     region.js
     feeto.js
     feefrom.js
     cookies.js
*/

function MessageBoard(){
	FN=document.guest.countrycode;
	cc=FN.options[FN.selectedIndex].value;
	if(cc!=""){
		location.href="messageboard.cgi?G10="+cc;
	}
}

function JumpUrl(FN) {
	var cc = FN.options[FN.selectedIndex].value;
	if (cc != "") {
		location.href="messageboard.cgi?G10="+cc;
	}
}


/* COOKIE CHECK */
function FieldCheck() {
  if (TextCheck('UID','Please input your e-mail address.','login') == false) {return false;}
  if (EmailCheck('UID','E-mail address is not right.','login') == false) {return false;}
  if (TextCheck('PSWD','Please input your password.','login') == false) {return false;}
  document.login.submit();
  return true;
}

/* FORM CHECK */
function onFocus(field) {field.style.backgroundColor="linen";}
function onBlur(field) {field.style.backgroundColor="";}
function TextCheck(FN,MSG,FORM,LENG,CHECK) {
	F = document.forms[FORM].elements[FN];
	if (F.value == "") {
		window.alert(MSG);
		F.focus();return false;
	}
	if (CHECK == "numeric") {return NumericCheck(FN,MSG,FORM);}
	if (LENG) {return LengthCheck(FN,MSG,FORM,LENG);}
}
function EmailCheck(FN,MSG,FORM) {
	F = document.forms[FORM].elements[FN];
	var str = F.value;
    var re = /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/;
    if (!str.match(re)) {
        window.alert(MSG);
		F.focus();return false;
    } else {
        return true;
    }
}
function LengthCheck(FN,MSG,FORM,LENG) {
	F = document.forms[FORM].elements[FN];
	if (F.value.length > LENG) {
		window.alert(MSG);
		F.focus();return false;
	}
}
function NumericCheck(FN,MSG,FORM) {
	F = document.forms[FORM].elements[FN];
	if (F.value.match(/[^0-9]/g)) {
		window.alert(MSG);
		F.focus();return false;
	}
}
function AlphamericCheck(FN,MSG,FORM) {
	F = document.forms[FORM].elements[FN];
	if (F.value.match(/[^0-9a-zA-Z]/g)) {
		window.alert(MSG);
		F.focus();return false;
	}
}
function SelectCheck(FN,MSG,FORM) {
	F = document.forms[FORM].elements[FN];
	if (F.selectedIndex < 0) {
		window.alert(MSG);
		F.focus();return false;
	}
	if (F.options[F.selectedIndex].value == "") {
		window.alert(MSG);
		F.focus();return false;
	}
}
function CheckBoxCheck(FN,MSG,FORM) {
	F = document.forms[FORM].elements[FN];
	if (F.checked == false) {
		window.alert(MSG);
		F.focus();return false;
	}
}
function RadioCheck(FN,MSG,FORM) {
	F = document.forms[FORM].elements[FN];
	var Valid = false;
	for (var i=0; i<F.length; i++) {
		if (F[i].checked) {
			return true;
		}
	}
	window.alert(MSG);
	F[0].focus();
	return false;
}


/* region.js */
var RegionDB = new Object();

// New Zealand
RegionDB["NZ"] = [
	{value:"", text:"-----------"},
	{value:"Auckland", text:"Auckland"},
	{value:"Hamilton", text:"Hamilton"},
	{value:"Palmerston North", text:"Palmerston North"},
	{value:"Wellington", text:"Wellington"},
	{value:"Christchurch", text:"Christchurch"},
	{value:"Dunedin", text:"Dunedin"},
	{value:"", text:"-----------"},
	{value:"Northland", text:"Northland"},
	{value:"Waikato/BOP", text:"Waikato/BOP"},
	{value:"Gisborne/Hawkes Bay", text:"Gisborne/Hawkes Bay"},
	{value:"Taranaki/Manawatu", text:"Taranaki/Manawatu"},
	{value:"Wairarapa", text:"Wairarapa"},
	{value:"Kapiti Coast", text:"Kapiti Coast"},
	{value:"Nelson/Marlborough", text:"Nelson/Marlborough"},
	{value:"West Coast", text:"West Coast"},
	{value:"Otago/Southland", text:"Otago/Southland"}
];

// Australia
RegionDB["AU"] = [
	{value:"", text:"-----------"},
	{value:"Adelaide", text:"Adelaide"},
	{value:"Brisbane", text:"Brisbane"},
	{value:"Cairns", text:"Cairns"},
	{value:"Canberra", text:"Canberra"},
	{value:"Darwin", text:"Darwin"},
	{value:"Gold Coast", text:"Gold Coast"},
	{value:"Hobart", text:"Hobart"},
	{value:"Melbourne", text:"Melbourne"},
	{value:"Perth", text:"Perth"},
	{value:"Sunshine Coast", text:"Sunshine Coast"},
	{value:"Sydney", text:"Sydney"},
	{value:"", text:"-----------"},
	{value:"New South Wales", text:"New South Wales"},
	{value:"Northern Territory", text:"Northern Territory"},
	{value:"Queensland", text:"Queensland"},
	{value:"South Australia", text:"South Australia"},
	{value:"Tasmania", text:"Tasmania"},
	{value:"Victoria", text:"Victoria"},
	{value:"Western Australia", text:"Western Australia"}
];

// Canada
RegionDB["CA"] = [
	{value:"", text:"-----------"},
	{value:"Calgary", text:"Calgary"},
	{value:"Edmonton", text:"Edmonton"},
	{value:"Montreal", text:"Montreal"},
	{value:"Ottawa", text:"Ottawa"},
	{value:"Toronto", text:"Toronto"},
	{value:"Vancouver", text:"Vancouver"},
	{value:"Victoria", text:"Victoria"},
	{value:"", text:"-----------"},
	{value:"Alberta", text:"Alberta"},
	{value:"British Columbia", text:"British Columbia"},
	{value:"Manitoba", text:"Manitoba"},
	{value:"New Brunswick", text:"New Brunswick"},
	{value:"Newfoundland and Labrador", text:"Newfoundland and Labrador"},
	{value:"Northwest Territories", text:"Northwest Territories"},
	{value:"Nova Scotia", text:"Nova Scotia"},
	{value:"Nunavut", text:"Nunavut"},
	{value:"Ontario", text:"Ontario"},
	{value:"Prince Edward Island", text:"Prince Edward Island"},
	{value:"Quebec", text:"Quebec"},
	{value:"Saskatchewan", text:"Saskatchewan"},
	{value:"Yukon", text:"Yukon"}
];

// England
RegionDB["GB"] = [
	{value:"", text:"-----------"},
	{value:"Northern Ireland", text:"Northern Ireland"},
	{value:"Scotland Region UK", text:"-- Scotland Region --"},
	{value:"Scotland", text:"Scotland"},
	{value:"Edinburgh", text:"Edinburgh"},
	{value:"Glasgow", text:"Glasgow"},
	{value:"North East Region UK", text:"-- North East Region --"},
	{value:"Middlesbrough", text:"Middlesbrough"},
	{value:"Newcastle", text:"Newcastle"},
	{value:"Sunderland", text:"Sunderland"},
	{value:"North West Region UK", text:"-- North West Region --"},
	{value:"Northern England", text:"Northern England"},
	{value:"Manchester", text:"Manchester"},
	{value:"Lancashire", text:"Lancashire"},
	{value:"Liverpool", text:"Liverpool"},
	{value:"Yorkshire and the Humber Region UK", text:"-- Yorkshire and the Humber --"},
	{value:"Bradford", text:"Bradford"},
	{value:"Hull", text:"Hull"},
	{value:"Sheffield", text:"Sheffield"},
	{value:"Leeds", text:"Leeds"},
	{value:"York", text:"York"},
	{value:"Midlands Region UK", text:"-- Midlands Region --"},
	{value:"Midlands", text:"Midlands"},
	{value:"Nottingham", text:"Nottingham"},
	{value:"Derby", text:"Derby"},
	{value:"Leicester", text:"Leicester"},
	{value:"Birmingham", text:"Birmingham"},
	{value:"Coventry", text:"Coventry"},
	{value:"Warwickshire", text:"Warwickshire"},
	{value:"East Region UK", text:"-- East Region --"},
	{value:"East England", text:"East England"},
	{value:"East Anglia", text:"East Anglia"},
	{value:"Cambridge", text:"Cambridge"},
	{value:"Ipswich", text:"Ipswich"},
	{value:"Luton", text:"Luton"},
	{value:"Southend", text:"Southend"},
	{value:"Norwich", text:"Norwich"},
	{value:"London Region UK", text:"-- London Region --"},
	{value:"London", text:"London"},
	{value:"Stoke", text:"Stoke"},
	{value:"South East Region UK", text:"-- South East Region --"},
	{value:"South East England", text:"South East England"},
	{value:"Milton Keynes", text:"Milton Keynes"},
	{value:"Reading", text:"Reading"},
	{value:"Brighton", text:"Brighton"},
	{value:"Guildford", text:"Guildford"},
	{value:"Kent", text:"Kent"},
	{value:"Oxford", text:"Oxford"},
	{value:"Southampton", text:"Southampton"},
	{value:"Portsmouth", text:"Portsmouth"},
	{value:"South West Region UK", text:"-- South West Region --"},
	{value:"South West England", text:"South West England"},
	{value:"Cotswolds", text:"Cotswolds"},
	{value:"Cheltenham", text:"Cheltenham"},
	{value:"Bath", text:"Bath"},
	{value:"Gloucester", text:"Gloucester"},
	{value:"Bristol", text:"Bristol"},
	{value:"Swindon", text:"Swindon"},
	{value:"Bournemouth", text:"Bournemouth"},
	{value:"Exeter", text:"Exeter"},
	{value:"Plymouth", text:"Plymouth"},
	{value:"Wales Region", text:"-- Wales Region --"},
	{value:"Wales", text:"Wales"},
	{value:"Cardiff", text:"Cardiff"},
	{value:"Islands", text:"Islands"}
];

// USA
RegionDB["US"] = [
	{value:"", text:"-----------"},
	{value:"", text:"-- Top Cities --"},
	{value:"Boston", text:"Boston"},
	{value:"Chicago", text:"Chicago"},
	{value:"Honolulu", text:"Honolulu"},
	{value:"Los Angeles", text:"Los Angeles"},
	{value:"New York City", text:"New York City"},
	{value:"San Diego", text:"San Diego"},
	{value:"San Francisco", text:"San Francisco"},
	{value:"Seattle", text:"Seattle"},
	{value:"Orlando", text:"Orlando"},
	{value:"Non Mainland Region", text:"-- Non Mainland Region --"},
	{value:"Alaska", text:"Alaska"},
	{value:"Hawaii", text:"Hawaii"},
	{value:"Guam", text:"Guam"},
	{value:"Northwest Region", text:"-- Northwest Region --"},
	{value:"Idaho", text:"Idaho"},
	{value:"Montana", text:"Montana"},
	{value:"Oregon", text:"Oregon"},
	{value:"Washington", text:"Washington"},
	{value:"Wyoming", text:"Wyoming"},
	{value:"Western Region", text:"-- Western Region --"},
	{value:"Arizona", text:"Arizona"},
	{value:"California", text:"California"},
	{value:"Colorado", text:"Colorado"},
	{value:"Nevada", text:"Nevada"},
	{value:"New Mexico", text:"New Mexico"},
	{value:"Utah", text:"Utah"},
	{value:"Upper Midwest Region", text:"-- Upper Midwest Region --"},
	{value:"Iowa", text:"Iowa"},
	{value:"Kansas", text:"Kansas"},
	{value:"Minnesota", text:"Minnesota"},
	{value:"Missouri", text:"Missouri"},
	{value:"Nebraska", text:"Nebraska"},
	{value:"North Dakota", text:"North Dakota"},
	{value:"South Dakota", text:"South Dakota"},
	{value:"Great Lakes Region", text:"-- Great Lakes Region --"},
	{value:"Illinois", text:"Illinois"},
	{value:"Indiana", text:"Indiana"},
	{value:"Michigan", text:"Michigan"},
	{value:"Ohio", text:"Ohio"},
	{value:"Wisconsin", text:"Wisconsin"},
	{value:"Southern Plains-Gulf Region", text:"-- Southern Plains-Gulf Region --"},
	{value:"Alabama", text:"Alabama"},
	{value:"Arkansas", text:"Arkansas"},
	{value:"Louisiana", text:"Louisiana"},
	{value:"Mississippi", text:"Mississippi"},
	{value:"Oklahoma", text:"Oklahoma"},
	{value:"Texas", text:"Texas"},
	{value:"Southeastern Region", text:"-- Southeastern Region --"},
	{value:"Florida", text:"Florida"},
	{value:"Georgia", text:"Georgia"},
	{value:"Kentucky", text:"Kentucky"},
	{value:"North Carolina", text:"North Carolina"},
	{value:"Puerto Rico", text:"Puerto Rico"},
	{value:"South Carolina", text:"South Carolina"}, 
	{value:"Tennessee", text:"Tennessee"},
	{value:"Virginia", text:"Virginia"},
	{value:"Virgin Islands", text:"Virgin Islands"},
	{value:"Mid-Atlantic Region", text:"-- Mid-Atlantic Region --"},
	{value:"Delaware", text:"Delaware"},
	{value:"Maryland", text:"Maryland"},
	{value:"New Jersey", text:"New Jersey"},
	{value:"New York", text:"New York"},
	{value:"Pennsylvania", text:"Pennsylvania"},
	{value:"Washington DC", text:"Washington DC"},
	{value:"West Virginia", text:"West Virginia"},
	{value:"New England Region", text:"-- New England Region --"},
	{value:"Connecticut", text:"Connecticut"},
	{value:"Maine", text:"Maine"},
	{value:"Massachusetts", text:"Massachusetts"},
	{value:"New Hampshire", text:"New Hampshire"},
	{value:"Rhode Island", text:"Rhode Island"},
	{value:"Vermont", text:"Vermont"}
];


//Finland 
RegionDB["FI"] = [
	{value:"", text:"-----------"},
	{value:"Helsinki", text:"Helsinki"},
	{value:"", text:"-----------"},
	{value:"Lapland", text:"Lapland"},
	{value:"Oulu", text:"Oulu"},
	{value:"Western Finland", text:"Western Finland"},
	{value:"Eastern Finland", text:"Eastern Finland"},
	{value:"Southern Finland", text:"Southern Finland"},
	{value:"Aland", text:"Aland"}
];

//Ireland
RegionDB["IE"] = [
	{value:"", text:"-----------"},
	{value:"Dublin", text:"Dublin"},
	{value:"", text:"-----------"},
	{value:"North West", text:"North West"},
	{value:"Ireland West", text:"Ireland West"},
	{value:"Midlands East", text:"Midlands East"},
	{value:"Shannonside", text:"Shannonside"},
	{value:"South East", text:"South East"},
	{value:"Cork/Kerry", text:"Cork/Kerry"}
];

//Germany
RegionDB["DE"] = [
	{value:"", text:"-----------"},
	{value:"Berlin", text:"Berlin"},
	{value:"Dusseldorf", text:"Dusseldorf"},
	{value:"Frankfurt", text:"Frankfurt"},
	{value:"Hamburg", text:"Hamburg"},
	{value:"Munich", text:"Munich"},
	{value:"", text:"-----------"},
	{value:"Schleswig-Holstein", text:"Schleswig-Holstein"},
	{value:"Mecklenburg-Vorpommern", text:"Mecklenburg-Vorpommern"},
	{value:"Bremen", text:"Bremen"},
	{value:"Niedersachsen", text:"Niedersachsen"},
	{value:"Brandenburg", text:"Brandenburg"},
	{value:"Sachsen-Anhalt", text:"Sachsen-Anhalt"},
	{value:"Nordrhein-Westphalen", text:"Nordrhein-Westphalen"},
	{value:"Hesse", text:"Hesse"},
	{value:"Thuringen", text:"Thuringen"},
	{value:"Sachsen", text:"Sachsen"},
	{value:"Rheinland-Pfalz", text:"Rheinland-Pfalz"},
	{value:"Saarland", text:"Saarland"},
	{value:"Baden-Wurtemberg", text:"Baden-Wurtemberg"},
	{value:"Bayern", text:"Bayern"}
];

//Netherland
RegionDB["NL"] = [
	{value:"", text:"-----------"},
	{value:"Amsterdam", text:"Amsterdam"},
	{value:"", text:"-----------"},
	{value:"Groningeri", text:"Groningeri"},
	{value:"Friesland", text:"Friesland"},
	{value:"Drenthe", text:"Drenthe"},
	{value:"Flevoland", text:"Flevoland"},
	{value:"Overijssel", text:"Overijssel"},
	{value:"GNoord-Holland", text:"Noord-Holland"},
	{value:"Zuid-Holland", text:"Zuid-Holland"},
	{value:"Utrecht", text:"Utrecht"},
	{value:"Gelderland", text:"Gelderland"},
	{value:"Zeeland", text:"Zeeland"},
	{value:"Noord-Brabant", text:"Noord-Brabant"},
	{value:"Limburg", text:"Limburg"}
];

//Belgium
RegionDB["BE"] = [
	{value:"", text:"-----------"},
	{value:"Brussels", text:"Brussels"},
	{value:"", text:"-----------"},
	{value:"West Flanders", text:"West Flanders"},
	{value:"East Flanders", text:"East Flanders"},
	{value:"Antwerp", text:"Antwerp"},
	{value:"Limburg", text:"Limburg"},
	{value:"Flemish Brabant", text:"Flemish Brabant"},
	{value:"Walloon Brabant", text:"Walloon Brabant"},
	{value:"Hainaut", text:"Hainaut"},
	{value:"Namur", text:"Namur"},
	{value:"Liege", text:"Liege"}
];

//Luxembourg
RegionDB["LU"] = [
	{value:"", text:"-----------"},
	{value:"Luxembourg", text:"Luxembourg"}
];

//France
RegionDB["FR"] = [
	{value:"", text:"-----------"},
	{value:"Nice", text:"Nice"},
	{value:"Marseille", text:"Marseille"},
	{value:"Paris", text:"Paris"},
	{value:"Strasbourg", text:"Strasbourg"},
	{value:"Tours", text:"Tours"},
	{value:"", text:"-----------"},
	{value:"Alsace", text:"Alsace"},
	{value:"Aquitaine", text:"Aquitaine"},
	{value:"Auvergne", text:"Auvergne"},
	{value:"Bourgogne", text:"Bourgogne"},
	{value:"Bretagne", text:"Bretagne"},
	{value:"Centre", text:"Centre"},
	{value:"Champagne Ardenne", text:"Champagne Ardenne"},
	{value:"Corse", text:"Corse"},
	{value:"Franche-Comte", text:"Franche-Comte"},
	{value:"Ile-de-France", text:"Ile-de-France"},
	{value:"Languedoc Roussillon", text:"Languedoc Roussillon"},
	{value:"Limousin", text:"Limousin"},
	{value:"Lorraine", text:"Lorraine"},
	{value:"Midi-Pyrenees", text:"Midi-Pyrenees"},
	{value:"Nord Pas de Calais", text:"Nord Pas de Calais"},
	{value:"Normandie", text:"Normandie"},
	{value:"PACA", text:"PACA"},
	{value:"Pays de la Loire", text:"Pays de la Loire"},
	{value:"Picardie", text:"Picardie"},
	{value:"Poitou Charentes", text:"Poitou Charentes"},
	{value:"Rhone-Alpes", text:"Rhone-Alpes"}
];

//Austria
RegionDB["AT"] = [
	{value:"", text:"-----------"},
	{value:"Salzburg", text:"Salzburg"},
	{value:"Vinna", text:"Vinna"},
	{value:"", text:"-----------"},
	{value:"Upper Austria", text:"Upper Austria"},
	{value:"Lower Austria", text:"Lower Austria"},
	{value:"Vorarlberg", text:"Vorarlberg"},
	{value:"Tyrol", text:"Tyrol"},
	{value:"Salzburg", text:"Salzburg"},
	{value:"Styria", text:"Styria"},
	{value:"Burgenland", text:"Burgenland"},
	{value:"Karnten", text:"Karnten"}
];

//Italy
RegionDB["IT"] = [
	{value:"", text:"-----------"},
	{value:"Florence", text:"Florence"},
	{value:"Naples", text:"Naples"},
	{value:"Milan", text:"Milan"},
	{value:"Rome", text:"Rome"},
	{value:"Venice", text:"Venice"},
	{value:"", text:"-----------"},
	{value:"Abruzzi", text:"Abruzzi"},
	{value:"Basilicata", text:"Basilicata"},
	{value:"Calabria", text:"Calabria"},
	{value:"Campania", text:"Campania"},
	{value:"Emilia-Romagna", text:"Emilia-Romagna"},
	{value:"Friuli-Venezia Giulia", text:"Friuli-Venezia Giulia"},
	{value:"Latium", text:"Latium"},
	{value:"Liguria", text:"Liguria"},
	{value:"Lombardia", text:"Lombardia"},
	{value:"Marche", text:"Marche"},
	{value:"Molise", text:"Molise"},
	{value:"Piemonte", text:"Piemonte"},
	{value:"Puglia", text:"Puglia"},
	{value:"Sardinia", text:"Sardinia"},
	{value:"Sicily", text:"Sicily"},
	{value:"Trentino-Alto Adige", text:"Trentino-Alto Adige"},
	{value:"Tuscany", text:"Tuscany"},
	{value:"Umbria", text:"Umbria"},
	{value:"Valle d'Aosta", text:"Valle d'Aosta"},
	{value:"Venetia", text:"Venetia"}
];

//Greece
RegionDB["GR"] = [
	{value:"", text:"-----------"},
	{value:"Athena", text:"Athena"},
	{value:"", text:"-----------"},
	{value:"Eastern Macedonia and Thrace", text:"Eastern Macedonia and Thrace"},
	{value:"Central Macedonia", text:"Central Macedonia"},
	{value:"Western Macedonia", text:"Western Macedonia"},
	{value:"Mount Athos", text:"Mount Athos"},
	{value:"Ipeiros", text:"Ipeiros"},
	{value:"Thessalia", text:"Thessalia"},
	{value:"Ionian Islands", text:"Ionian Islands"},
	{value:"Central Greece", text:"Central Greece"},
	{value:"Northern Aegean", text:"Northern Aegean"},
	{value:"Western Greece", text:"Western Greece"},
	{value:"Attiki", text:"Attiki"},
	{value:"Peloponnisos", text:"Peloponnisos"},
	{value:"Southern Aegean", text:"Southern Aegean"},
	{value:"Crete", text:"Crete"}
];

//Spain
RegionDB["ES"] = [
	{value:"", text:"-----------"},
	{value:"Barcelona", text:"Barcelona"},
	{value:"Granada", text:"Granada"},
	{value:"Madrid", text:"Madrid"},
	{value:"", text:"-----------"},
	{value:"Andalucia", text:"Andalucia"},
	{value:"Aragon", text:"Aragon"},
	{value:"Asturias", text:"Asturias"},
	{value:"Balearic Islands", text:"Balearic Islands"},
	{value:"Basque Country", text:"Basque Country"},
	{value:"Canary Islands", text:"Canary Islands"},
	{value:"Cantabria", text:"Cantabria"},
	{value:"Castilla-La Mancha", text:"Castilla-La Mancha"},
	{value:"Castilla-Leon", text:"Castilla-Leon"},
	{value:"Catalonia", text:"Catalonia"},
	{value:"Extremadura", text:"Extremadura"},
	{value:"Galicia", text:"Galicia"},
	{value:"La Rioja", text:"La Rioja"},
	{value:"Murcia", text:"Murcia"},
	{value:"Navarra", text:"Navarra"},
	{value:"Valencia", text:"Valencia"}
];

RegionDB["PT"] = [
	{value:"", text:"-----------"},
	{value:"Lisbon", text:"Lisbon"},
	{value:"", text:"-----------"},
	{value:"Costa Verde", text:"Costa Verde"},
	{value:"Montanhas", text:"Montanhas"},
	{value:"Costa de Prata", text:"Costa de Prata"},
	{value:"Planicies", text:"Planicies"},
	{value:"Costa de Lisboa", text:"Costa de Lisboa"},
	{value:"Algarve", text:"Algarve"},
	{value:"Acores", text:"Acores"},
	{value:"Madeira", text:"Madeira"}
];

// Malta
RegionDB["MT"] = [
	{value:"", text:"-----------"},
	{value:"St.Julian's", text:"St.Julian's"},
	{value:"Sliema", text:"Sliema"},
	{value:"Mellieha", text:"Mellieha"},
	{value:"Valletta", text:"Valletta"},
	{value:"Bugibba", text:"Bugibba"},
	{value:"Qawra", text:"Qawra"},
	{value:"Mdina", text:"Mdina"},
	{value:"Pieta", text:"Pieta"},
	{value:"", text:"-----------"},
	{value:"Malta Island", text:"Malta Island"},
	{value:"Gozo Island", text:"Gozo Island"},
	{value:"Comino Island", text:"Comino Island"}
];

// Norway
RegionDB["NO"] = [
	{value:"", text:"-----------"},
	{value:"Andalsnes", text:"Andalsnes"},
	{value:"Bergen", text:"Bergen"},
	{value:"Kristiansand", text:"Kristiansand"},
	{value:"Haugesund", text:"Haugesund"},
	{value:"Hammerfest", text:"Hammerfest"},
	{value:"Lillehammer", text:"Lillehammer"},
	{value:"Oslo", text:"Oslo"},
	{value:"Stavanger", text:"Stavanger"},
	{value:"Svolvaer", text:"Svolvaer"},
	{value:"Trondheim", text:"Trondheim"},
	{value:"Tromso", text:"Tromso"},
	{value:"", text:"-----------"},
	{value:"East Norway", text:"East Norway"},
	{value:"South Norway", text:"South Norway"},
	{value:"West Norway", text:"West Norway"},
	{value:"Middle Norway", text:"Middle Norway"},
	{value:"Northern Norway", text:"Northern Norway"}
];

// Sweden
RegionDB["SE"] = [
	{value:"", text:"-----------"},
	{value:"Gothenburg", text:"Gothenburg"},
	{value:"Goteborg", text:"Goteborg"},
	{value:"Halmstad", text:"Halmstad"},
	{value:"Helsingborg", text:"Helsingborg"},
	{value:"Jonkoping", text:"Jonkoping"},
	{value:"Karlstad", text:"Karlstad"},
	{value:"Lund", text:"Lund"},
	{value:"Malmo", text:"Malmo"},
	{value:"Umea", text:"Umea"},
	{value:"Uppsala", text:"Uppsala"},
	{value:"Stockholm", text:"Stockholm"},
	{value:"Vasteras", text:"Vasteras"},
	{value:"", text:"-----------"},
	{value:"Norrland", text:"Norrland"},
	{value:"Svealand", text:"Svealand"},
	{value:"Gotaland", text:"Gotaland"}
];

// Russia
RegionDB["RU"] = [
	{value:"", text:"-----------"},
	{value:"Ekaterinburg", text:"Ekaterinburg"},
	{value:"Chelyabinsk", text:"Chelyabinsk"},
	{value:"Irkutsk", text:"Irkutsk"},
	{value:"Kaliningrad", text:"Kaliningrad"},
	{value:"Moscow", text:"Moscow"},
	{value:"Novgorod", text:"Novgorod"},
	{value:"Pyatigorsk", text:"Pyatigorsk"},
	{value:"St.Petersburg", text:"St.Petersburg"},
	{value:"Volgograd", text:"Volgograd"},
	{value:"Vladivostok", text:"Vladivostok"}
];

// Denmark
RegionDB["DK"] = [
	{value:"", text:"-----------"},
	{value:"Aalborg", text:"Aalborg"},
	{value:"Aarhus", text:"Aarhus"},
	{value:"Copenhagen", text:"Copenhagen"},
	{value:"Ebeltoft", text:"Ebeltoft"},
	{value:"Helsingor", text:"Helsingor"},
	{value:"Horsens", text:"Horsens"},
	{value:"Lyngby", text:"Lyngby"},
	{value:"Odense", text:"Odense"},
	{value:"Randers", text:"Randers"},
	{value:"Roskilde", text:"Roskilde"},
	{value:"Taastrup", text:"Taastrup"},
	{value:"Viborg", text:"Viborg"},
	{value:"", text:"-----------"},
	{value:"Zealand", text:"Zealand"},
	{value:"Jutland", text:"Jutland"},
	{value:"Funen", text:"Funen"},
	{value:"Mon", text:"Mon"},
	{value:"Falster", text:"Falster"},
	{value:"Lolland", text:"Lolland"},
	{value:"Bornholm", text:"Bornholm"}
];

// Poland
RegionDB["PL"] = [
	{value:"", text:"-----------"},
	{value:"Czestochowa", text:"Czestochowa"},
	{value:"Gdansk", text:"Gdansk"},
	{value:"Krakow", text:"Krakow"},
	{value:"Lodz", text:"Lodz"},
	{value:"Lublin", text:"Lublin"},
	{value:"Poznan", text:"Poznan"},
	{value:"Torun", text:"Torun"},
	{value:"Warsaw", text:"Warsaw"},
	{value:"Wroclaw", text:"Wroclaw"},
	{value:"Zakopane", text:"Zakopane"}
];

// Switzerland
RegionDB["CH"] = [
	{value:"", text:"-----------"},
	{value:"Basel", text:"Basel"},
	{value:"Berne", text:"Berne"},
	{value:"Davos", text:"Davos"},
	{value:"Geneva", text:"Geneva"},
	{value:"Grindelwald", text:"Grindelwald"},
	{value:"Interlaken", text:"Interlaken"},
	{value:"Lausanne", text:"Lausanne"},
	{value:"Locarno", text:"Locarno"},
	{value:"Lucerne", text:"Lucerne"},
	{value:"Lugano", text:"Lugano"},
	{value:"Montana", text:"Montana"},
	{value:"Montreux", text:"Montreux"},
	{value:"Neuchatel", text:"Neuchatel"},
	{value:"Zermatt", text:"Zermatt"},
	{value:"Zurich", text:"Zurich"}
];

// Iceland
RegionDB["IS"] = [
	{value:"", text:"-----------"},
	{value:"Akureyri", text:"Akureyri"},
	{value:"Akranes", text:"Akranes"},
	{value:"Borgarnes", text:"Borgarnes"},
	{value:"Blonduos", text:"Blonduos"},
	{value:"Hofn", text:"Hofn"},
	{value:"Hveragerdi", text:"Hveragerdi"},
	{value:"Keflavik", text:"Keflavik"},
	{value:"Kirkjubaejarklaustur", text:"Kirkjubaejarklaustur"},
	{value:"Reykjavik", text:"Reykjavik"},
	{value:"Seydisfjordur", text:"Seydisfjordur"},
	{value:"Stykkisholmur", text:"Stykkisholmur"}
];

// Ukraine
RegionDB["UA"] = [
	{value:"", text:"-----------"},
	{value:"Kiev", text:"Kiev"},
	{value:"Odessa", text:"Odessa"},
	{value:"Kharkov", text:"Kharkov"},
	{value:"Yalta", text:"Yalta"},
	{value:"Dnepropetrovsk", text:"Dnepropetrovsk"}
];

// Romania
RegionDB["RO"] = [
	{value:"", text:"-----------"},
	{value:"Bucharest", text:"Bucharest"},
	{value:"Mamaia", text:"Mamaia"},
	{value:"Sinaia", text:"Sinaia"},
	{value:"Brasov", text:"Brasov"},
	{value:"Iasi", text:"Iasi"},
	{value:"Sibiu", text:"Sibiu"},
	{value:"Timisoara", text:"Timisoara"},
	{value:"Cluj-Napoca", text:"Cluj-Napoca"}
];

// Bulgaria
RegionDB["BG"] = [
	{value:"", text:"-----------"},
	{value:"Sofia", text:"Sofia"},
	{value:"Varna", text:"Varna"},
	{value:"Plovdiv", text:"Plovdiv"},
	{value:"Vidin", text:"Vidin"},
	{value:"Borovets", text:"Borovets"},
	{value:"Bourgas", text:"Bourgas"},
	{value:"Rousse", text:"Rousse"},
	{value:"Sandanski", text:"Sandanski"},
	{value:"Pamporovo", text:"Pamporovo"},
	{value:"Melnik", text:"Melnik"}
];

// Croatia
RegionDB["HR"] = [
	{value:"", text:"-----------"},
	{value:"Dubrovnik", text:"Dubrovnik"},
	{value:"Split", text:"Split"},
	{value:"Zagreb", text:"Zagreb"},
	{value:"Hvar", text:"Hvar"},
	{value:"Pula", text:"Pula"},
	{value:"Porec", text:"Porec"},
	{value:"Sibenik", text:"Sibenik"},
	{value:"Opatija", text:"Opatija"}
];

// Hungary
RegionDB["HU"] = [
	{value:"", text:"-----------"},
	{value:"Budapest", text:"Budapest"},
	{value:"Pecs", text:"Pecs"},
	{value:"Siofok", text:"Siofok"},
	{value:"Heviz", text:"Heviz"},
	{value:"Szeged", text:"Szeged"},
	{value:"Eger", text:"Eger"},
	{value:"Gyor", text:"Gyor"}
];

// Czech Republic
RegionDB["CZ"] = [
	{value:"", text:"-----------"},
	{value:"Prague", text:"Prague"},
	{value:"Karlovy Vary", text:"Karlovy Vary"},
	{value:"Brno", text:"Brno"},
	{value:"Cesky Krumlov", text:"Cesky Krumlov"},
	{value:"Liberec", text:"Liberec"},
	{value:"Marianske Lazne", text:"Marianske Lazne"}
];

//Mexico
RegionDB["MX"] = [
	{value:"", text:"-----------"},
	{value:"Mexico City", text:"Mexico City"},
	{value:"Cancun", text:"Cancun"},
	{value:"Puerto Vallarta", text:"Puerto Vallarta"},
	{value:"", text:"-----------"},
	{value:"Aguascalientes", text:"Aguascalientes"},
	{value:"Baja California", text:"Baja California"},
	{value:"Baja California Sur", text:"Baja California Sur"},
	{value:"Campeche", text:"Campeche"},
	{value:"Chiapas", text:"Chiapas"},
	{value:"Chihuahua", text:"Chihuahua"},
	{value:"Coahuila", text:"Coahuila"},
	{value:"Colima", text:"Colima"},
	{value:"Durango", text:"Durango"},
	{value:"Guanajuato", text:"Guanajuato"},
	{value:"Guerrero", text:"Guerrero"},
	{value:"Hidalgo", text:"Hidalgo"},
	{value:"Jalisco", text:"Jalisco"},
	{value:"Mexico", text:"Mexico"},
	{value:"Michoacan", text:"Michoacan"},
	{value:"Morelos", text:"Morelos"},
	{value:"Nayarit", text:"Nayarit"},
	{value:"Nuevo Leon", text:"Nuevo Leon"},
	{value:"Oaxaca", text:"Oaxaca"},
	{value:"Puebla", text:"Puebla"},
	{value:"Queretaro", text:"Queretaro"},
	{value:"Quintana Roo", text:"Quintana Roo"},
	{value:"San Luis Potosi", text:"San Luis Potosi"},
	{value:"Sinaloa", text:"Sinaloa"},
	{value:"Sonora", text:"Sonora"},
	{value:"Tabasco", text:"Tabasco"},
	{value:"Tamaulipas", text:"Tamaulipas"},
	{value:"Tlaxcala", text:"Tlaxcala"},
	{value:"Veracruz", text:"Veracruz"},
	{value:"Yucatan", text:"Yucatan"},
	{value:"Zacatecas", text:"Zacatecas"},
	{value:"Federal District", text:"Federal District"}
];

// Costa Rica
RegionDB["CR"] = [
	{value:"", text:"-----------"},
	{value:"Quepos", text:"Quepos"},
	{value:"San Jose", text:"San Jose"},
	{value:"Tamarindo", text:"Tamarindo"},
	{value:"Liberia", text:"Liberia"},
	{value:"", text:"-----------"},
	{value:"Central Valley", text:"Central Valley"},
	{value:"Northwest", text:"Northwest"},
	{value:"North Pacific", text:"North Pacific"},
	{value:"Central Pacific Coast", text:"Central Pacific Coast"},
	{value:"South Zone", text:"South Zone"},
	{value:"Caribbean Coast", text:"Caribbean Coast"}
];


// Nicaragua
RegionDB["NI"] = [
	{value:"", text:"-----------"},
	{value:"Managua", text:"Managua"},
	{value:"Granada", text:"Granada"},
	{value:"Leon", text:"Leon"},
	{value:"Montelimar", text:"Montelimar"},
	{value:"Bluefields", text:"Bluefields"},
	{value:"Chinandega", text:"Chinandega"}
];


// Guatemala
RegionDB["GT"] = [
	{value:"", text:"-----------"},
	{value:"Guatemala City", text:"Guatemala City"},
	{value:"La Antigua Guatemala", text:"La Antigua Guatemala"},
	{value:"Panajachel", text:"Panajachel"},
	{value:"Puerto Barrios", text:"Puerto Barrios"},
	{value:"Puerto San Jose", text:"Puerto San Jose"},
	{value:"Quetzaltenango", text:"Quetzaltenango"},
	{value:"", text:"-----------"},
	{value:"Central Highlands", text:"Central Highlands"},
	{value:"Western Highlands", text:"Western Highlands"},
	{value:"Caribbean Coast", text:"Caribbean Coast"},
	{value:"Peten", text:"Peten"},
	{value:"Pacific Highlands", text:"Pacific Highlands"}
];


// Grenada
RegionDB["GD"] = [
	{value:"", text:"-----------"},
	{value:"Saint Andrew", text:"Saint Andrew"},
	{value:"Saint David", text:"Saint David"},
	{value:"Saint George", text:"Saint George"},
	{value:"Saint John", text:"Saint John"},
	{value:"Saint Mark", text:"Saint Mark"},
	{value:"Saint Patrick", text:"Saint Patrick"}
];


//Argentina
RegionDB["AR"] = [
	{value:"", text:"-----------"},
	{value:"Buenos Aires", text:"Buenos Aires"},
	{value:"San Carlos de Bariloche", text:"San Carlos de Bariloche"},
	{value:"Mar del Plata", text:"Mar del Plata"},
	{value:"Mendoza", text:"Mendoza"},
	{value:"Cordoba", text:"Cordoba"}
];

//Bolivia
RegionDB["BO"] = [
	{value:"", text:"-----------"},
	{value:"Santa Cruz", text:"Santa Cruz"},
	{value:"La Paz", text:"La Paz"},
	{value:"Cochabamba", text:"Cochabamba"},
	{value:"Huatajata Island", text:"Huatajata Island"},
	{value:"Trinidad", text:"Trinidad"}
];

//Brazil
RegionDB["BR"] = [
	{value:"", text:"-----------"},
	{value:"Rio de Janeiro", text:"Rio de Janeiro"},
	{value:"Sao Paulo", text:"Sao Paulo"},
	{value:"Salvador", text:"Salvador"},
	{value:"Belo Horizonte", text:"Belo Horizonte"},
	{value:"Buzios", text:"Buzios"},
	{value:"Curitiba", text:"Curitiba"},
	{value:"Brasilia", text:"Brasilia"},
	{value:"Foz do Iguacu", text:"Foz do Iguacu"},
	{value:"Fortaleza", text:"Fortaleza"},
	{value:"Recife", text:"Recife"},
	{value:"Florianopolis", text:"Florianopolis"},
	{value:"Natal", text:"Natal"},
	{value:"Porto Alegre", text:"Porto Alegre"},
	{value:"Manaus", text:"Manaus"},
	{value:"Campinas", text:"Campinas"},
	{value:"Porto Seguro", text:"Porto Seguro"},
	{value:"", text:"-----------"},
	{value:"The North", text:"The North"},
	{value:"The Northeast", text:"The Northeast"},
	{value:"The Central West", text:"The Central West"},
	{value:"The Southeast", text:"The Southeast"},
	{value:"The South", text:"The South"}
];

//Chile
RegionDB["CL"] = [
	{value:"", text:"-----------"},
	{value:"Santiago", text:"Santiago"},
	{value:"Vina del Mar", text:"Vina del Mar"},
	{value:"Easter Island", text:"Easter Island"},
	{value:"Iquique", text:"Iquique"},
	{value:"Osorno", text:"Osorno"}
];

//Colombia
RegionDB["CO"] = [
	{value:"", text:"-----------"},
	{value:"Bogota", text:"Bogota"},
	{value:"Cali", text:"Cali"},
	{value:"Cartagena", text:"Cartagena"},
	{value:"Barranquilla", text:"Barranquilla"},
	{value:"San Andres Island", text:"San Andres Island"},
	{value:"Medellin", text:"Medellin"}
];

//Ecuador
RegionDB["EC"] = [
	{value:"", text:"-----------"},
	{value:"Quito", text:"Quito"},
	{value:"Guayaquil", text:"Guayaquil"},
	{value:"Cuenca", text:"Cuenca"},
	{value:"Salinas", text:"Salinas"},
	{value:"Machala", text:"Machala"}
];

//Peru
RegionDB["PE"] = [
	{value:"", text:"-----------"},
	{value:"Lima", text:"Lima"},
	{value:"Machu Picchu", text:"Machu Picchu"},
	{value:"Arequipa", text:"Arequipa"},
	{value:"Miraflores", text:"Miraflores"},
	{value:"Cusco", text:"Cusco"}
];

//Venezuela
RegionDB["VE"] = [
	{value:"", text:"-----------"},
	{value:"Caracas", text:"Caracas"},
	{value:"Puerto La Cruz", text:"Puerto La Cruz"},
	{value:"Porlamar", text:"Porlamar"},
	{value:"Merida", text:"Merida"},
	{value:"Maracaibo", text:"Maracaibo"}
];

//Uruguay
RegionDB["UY"] = [
	{value:"", text:"-----------"},
	{value:"Montevideo", text:"Montevideo"},
	{value:"Chuy", text:"Chuy"},
	{value:"Colonia del Sacramento", text:"Colonia del Sacramento"},
	{value:"Fray Bentos", text:"Fray Bentos"},
	{value:"Juan Lacaze", text:"Juan Lacaze"},
	{value:"La Paloma", text:"La Paloma"},
	{value:"Nueva Palmira", text:"Nueva Palmira"},
	{value:"Paysandu", text:"Paysandu"},
	{value:"Punta del Este", text:"Punta del Este"},
	{value:"Piriapolis", text:"Piriapolis"},
	{value:"Salto", text:"Salto"}
];

//Paraguay
RegionDB["PY"] = [
	{value:"", text:"-----------"},
	{value:"Asuncion", text:"Asuncion"},
	{value:"Ciudad del Este", text:"Ciudad del Este"},
	{value:"Encarnacion", text:"Encarnacion"},
	{value:"Concepcion", text:"Concepcion"},
	{value:"San Antonio", text:"San Antonio"},
	{value:"Villeta", text:"Villeta"}
];

// Japan
RegionDB["JP"] = [
	{value:"", text:"-----------"},
	{value:"Hokkaido", text:"---- Hokkaido area ----"},
	{value:"Hokkaido", text:"Hokkaido"},
	{value:"Tohoku area", text:"---- Tohoku area ----"},
	{value:"Miyagi", text:"Miyagi"},
	{value:"Akita", text:"Akita"},
	{value:"Aomori", text:"Aomori"},
	{value:"Fukushima", text:"Fukushima"},
	{value:"Iwate", text:"Iwate"},
	{value:"Yamagata", text:"Yamagata"},
	{value:"Kanto area", text:"---- Kanto area ----"},
	{value:"Tokyo", text:"Tokyo"},
	{value:"Chiba", text:"Chiba"},
	{value:"Gumma", text:"Gumma"},
	{value:"Ibaraki", text:"Ibaraki"},
	{value:"Kanagawa", text:"Kanagawa"},
	{value:"Saitama", text:"Saitama"},
	{value:"Tochigi", text:"Tochigi"},
	{value:"Chubu area", text:"---- Chubu area ----"},
	{value:"Aichi", text:"Aichi"},
	{value:"Fukui", text:"Fukui"},
	{value:"Gifu", text:"Gifu"},
	{value:"Ishikawa", text:"Ishikawa"},
	{value:"Nagano", text:"Nagano"},
	{value:"Niigata", text:"Niigata"},
	{value:"Shizuoka", text:"Shizuoka"},
	{value:"Toyama", text:"Toyama"},
	{value:"Yamanashi", text:"Yamanashi"},
	{value:"Kansai area", text:"---- Kansai area ----"},
	{value:"Osaka", text:"Osaka"},
	{value:"Kyoto", text:"Kyoto"},
	{value:"Hyogo", text:"Hyogo"},
	{value:"Mie", text:"Mie"},
	{value:"Nara", text:"Nara"},
	{value:"Shiga", text:"Shiga"},
	{value:"Wakayama", text:"Wakayama"},
	{value:"Chugoku area", text:"---- Chugoku area ----"},
	{value:"Hiroshima", text:"Hiroshima"},
	{value:"Okayama", text:"Okayama"},
	{value:"Shimane", text:"Shimane"},
	{value:"Tottori", text:"Tottori"},
	{value:"Yamaguchi", text:"Yamaguchi"},
	{value:"Shikoku area", text:"---- Shikoku area ----"},
	{value:"Kagawa", text:"Kagawa"},
	{value:"Ehime", text:"Ehime"},
	{value:"Kochi", text:"Kochi"},
	{value:"Tokushima", text:"Tokushima"},
	{value:"Kyushu area", text:"---- Kyushu area ----"},
	{value:"Fukuoka", text:"Fukuoka"},
	{value:"Nagasaki", text:"Nagasaki"},
	{value:"Kumamoto", text:"Kumamoto"},
	{value:"Oita", text:"Oita"},
	{value:"Kagoshima", text:"Kagoshima"},
	{value:"Miyazaki", text:"Miyazaki"},
	{value:"Saga", text:"Saga"},
	{value:"Okinawa", text:"---- Okinawa area ----"},
	{value:"Okinawa", text:"Okinawa"}
];

// Korea
RegionDB["KR"] = [
	{value:"", text:"-----------"},
	{value:"Seoul", text:"Seoul"},
	{value:"Busan", text:"Busan"},
	{value:"Daegu", text:"Daegu"},
	{value:"Daejeon", text:"Daejeon"},
	{value:"Incheon", text:"Incheon"},
	{value:"Jeonju", text:"Jeonju"},
	{value:"Jinju", text:"Jinju"},
	{value:"Gwangju", text:"Gwangju"},
	{value:"Gyeongju", text:"Gyeongju"},
	{value:"", text:"-----------"},
	{value:"North Chungcheong", text:"North Chungcheong"},
	{value:"South Chungcheong", text:"South Chungcheong"},
	{value:"Gangwon", text:"Gangwon"},
	{value:"Gyeonggi", text:"Gyeonggi"},
	{value:"North Gyeongsang", text:"North Gyeongsang"},
	{value:"South Gyeongsang", text:"South Gyeongsang"},
	{value:"Jeju", text:"Jeju"},
	{value:"North Jeolla", text:"North Jeolla"},
	{value:"South Jeolla", text:"South Jeolla"}
];

// China
RegionDB["CN"] = [
	{value:"", text:"-----------"},
	{value:"Guilin", text:"Guilin"},
	{value:"Hangzhou", text:"Hangzhou"},
	{value:"Kunming", text:"Kunming"},
	{value:"Nanjing", text:"Nanjing"},
	{value:"Suzhou", text:"Suzhou"},
	{value:"ShangHai", text:"ShangHai"},
	{value:"XiAn", text:"XiAn"},
	{value:"", text:"-----------"},
	{value:"Northern Central Region", text:"-- Northern Central Region --"},
	{value:"Henan", text:"Henan"},
	{value:"Ningxia", text:"Ningxia"},
	{value:"Shaanxi", text:"Shaanxi"},
	{value:"Shanxi", text:"Shanxi"},
	{value:"Southern Central Region", text:"-- Southern Central Region --"},
	{value:"Anhui", text:"Anhui"},
	{value:"Guizhou", text:"Guizhou"},
	{value:"Hubei", text:"Hubei"},
	{value:"Hunan", text:"Hunan"},
	{value:"Jiangxi", text:"Jiangxi"},
	{value:"North East Region", text:"-- North East Region --"},
	{value:"Beijing", text:"Beijing"},
	{value:"Hebei", text:"Hebei"},
	{value:"Heilongjiang", text:"Heilongjiang"},
	{value:"Inner Mongolia", text:"Inner Mongolia"},
	{value:"Jilin", text:"Jilin"},
	{value:"Liaoning", text:"Liaoning"},
	{value:"Shandong", text:"Shandong"},
	{value:"Tianjin", text:"Tianjin"},
	{value:"North West Region", text:"-- North West Region --"},
	{value:"Gansu", text:"Gansu"},
	{value:"Qinghai", text:"Qinghai"},
	{value:"Xinjiang", text:"Xinjiang"},
	{value:"South West Region", text:"-- South West Region --"},
	{value:"Guangxi", text:"Guangxi"},
	{value:"Sichuan", text:"Sichuan"},
	{value:"Tibet", text:"Tibet"},
	{value:"Yunnan", text:"Yunnan"},
	{value:"South East Region", text:"-- South East Region --"},
	{value:"Fujian", text:"Fujian"},
	{value:"Guangdong", text:"Guangdong"},
	{value:"Hainan", text:"Hainan"},
	{value:"Jiangsu", text:"Jiangsu"},
	{value:"Zhejiang", text:"Zhejiang"}
];

// Taiwan
RegionDB["TW"] = [
	{value:"", text:"-----------"},
	{value:"Taipei", text:"Taipei"},
	{value:"Hsinchu", text:"Hsinchu"},
	{value:"Hualien", text:"Hualien"},
	{value:"Jioufen", text:"Jioufen"},
	{value:"Kaohsiung", text:"Kaohsiung"},
	{value:"Keelung", text:"Keelung"},
	{value:"Taichung", text:"Taichung"},
	{value:"Tainan", text:"Tainan"},
	{value:"Taipei County", text:"Taipei County"},
	{value:"", text:"-----------"},
	{value:"The Central", text:"The Central"},
	{value:"The East Coast", text:"The East Coast"},
	{value:"The North", text:"The North"},
	{value:"The South", text:"The South"},
	{value:"The Island", text:"The Island"}
];

// Mongolia
RegionDB["MN"] = [
	{value:"", text:"-----------"},
	{value:"Ulaanbaatar", text:"Ulaanbaatar"},
	{value:"Erdenet", text:"Erdenet"},
	{value:"Hovd", text:"Hovd"},
	{value:"Uliastai", text:"Uliastai"}
];

// Hong Kong
RegionDB["HK"] = [
	{value:"", text:"-----------"},
	{value:"Hong Kong Island", text:"Hong Kong Island"},
	{value:"Kowloon", text:"Kowloon"},
	{value:"The New Territories", text:"The New Territories"},
	{value:"The Outlying Islands", text:"The Outlying Islands"}
];

// Nepal
RegionDB["NP"] = [
	{value:"", text:"-----------"},
	{value:"Kathmandu", text:"Kathmandu"},
	{value:"Bhaktapur", text:"Bhaktapur"},
	{value:"Patan", text:"Patan"},
	{value:"Pokhara", text:"Pokhara"},
	{value:"", text:"-----------"},
	{value:"Kathmandu Valley", text:"Kathmandu Valley"},
	{value:"Annapurna", text:"Annapurna"},
	{value:"Everest", text:"Everest"},
	{value:"Langtang", text:"Langtang"},
	{value:"Mustang", text:"Mustang"},
	{value:"Terai", text:"Terai"}
];

// Bangladesh
RegionDB["BD"] = [
	{value:"", text:"-----------"},
	{value:"Dhaka", text:"Dhaka"},
	{value:"Chittagong", text:"Chittagong"},
	{value:"Cox's Bazar", text:"Cox's Bazar"},
	{value:"Khulna", text:"Khulna"},
	{value:"Rajshahi", text:"Rajshahi"},
	{value:"Gopalgonj", text:"Gopalgonj"},
	{value:"Barisal", text:"Barisal"},
	{value:"Sylhet", text:"Sylhet"},
	{value:"Jessore", text:"Jessore"}
];

// India
RegionDB["IN"] = [
	{value:"", text:"-----------"},
	{value:"New Delhi", text:"New Delhi"},
	{value:"Bangalore", text:"Bangalore"},
	{value:"Chennai", text:"Chennai"},
	{value:"Bombay", text:"Bombay"},
	{value:"Calcutta", text:"Calcutta"},
	{value:"Hyderabad", text:"Hyderabad"},
	{value:"Pune", text:"Pune"},
	{value:"Ahmedabad", text:"Ahmedabad"},
	{value:"", text:"-----------"},
	{value:"Himalayan North", text:"Himalayan North"},
	{value:"The Plains", text:"The Plains"},
	{value:"The West", text:"The West"},
	{value:"The South", text:"The South"},
	{value:"The East", text:"The East"},
	{value:"The North-East", text:"The North-East"}
];

// Myanmar
RegionDB["MM"] = [
	{value:"", text:"-----------"},
	{value:"Naypyidaw", text:"Naypyidaw"},
	{value:"Yangon", text:"Yangon"},
	{value:"Bago", text:"Bago"},
	{value:"", text:"-----------"},
	{value:"Ayeyarwady Division", text:"Ayeyarwady Division"},
	{value:"Bago Division", text:"Bago Division"},
	{value:"Magwe Division", text:"Magwe Division"},
	{value:"Mandalay Division", text:"Mandalay Division"},
	{value:"TheSagaing Division South", text:"Sagaing Division"},
	{value:"Tanintharyi Division", text:"Tanintharyi Division"},
	{value:"Yangon Division", text:"Yangon Division"}
];

// Vietnam
RegionDB["VN"] = [
	{value:"", text:"-----------"},
	{value:"Hanoi", text:"Hanoi"},
	{value:"Hue", text:"Hue"},
	{value:"Da Nang", text:"Da Nang"},
	{value:"Hoi An", text:"Hoi An"},
	{value:"Nha Trang", text:"Nha Trang"},
	{value:"Dalat", text:"Dalat"},
	{value:"Ho Chi Minh", text:"Ho Chi Minh"},
	{value:"Can Tho", text:"Can Tho"},
	{value:"", text:"-----------"},
	{value:"The North", text:"The North"},
	{value:"The Central Coast", text:"The Central Coast"},
	{value:"The Central Highlands", text:"The Central Highlands"},
	{value:"The South", text:"The South"}
];

// Laos
RegionDB["LA"] = [
	{value:"", text:"-----------"},
	{value:"Vientiane", text:"Vientiane"},
	{value:"Huay Xai", text:"Huay Xai"},
	{value:"Luang Prabang", text:"Luang Prabang"},
	{value:"Luang Namtha", text:"Luang Namtha"},
	{value:"Muang Xay", text:"Muang Xay"},
	{value:"Pakbeng", text:"Pakbeng"},
	{value:"Pakse", text:"Pakse"},
	{value:"Savannakhet", text:"Savannakhet"}
];

// Bhutan
RegionDB["BT"] = [
	{value:"", text:"-----------"},
	{value:"Thimphu", text:"Thimphu"},
	{value:"Jakar", text:"Jakar"},
	{value:"Mongar", text:"Mongar"},
	{value:"Paro", text:"Paro"},
	{value:"Punakha", text:"Punakha"},
	{value:"Phuentsholing", text:"Phuentsholing"},
	{value:"Samdrup Jongkhar", text:"Samdrup Jongkhar"},
	{value:"Trashigang", text:"Trashigang"},
	{value:"Trongsa", text:"Trongsa"},
	{value:"Wangdue Phodrang", text:"Wangdue Phodrang"}
];

// Thailand
RegionDB["TH"] = [
	{value:"", text:"-----------"},
	{value:"Bangkok", text:"Bangkok"},
	{value:"Ayutthaya", text:"Ayutthaya"},
	{value:"Chiang Mai", text:"Chiang Mai"},
	{value:"Chiang Rai", text:"Chiang Rai"},
	{value:"Hua Hin", text:"Hua Hin"},
	{value:"Kanchanaburi", text:"Kanchanaburi"},
	{value:"Pattaya", text:"Pattaya"},
	{value:"Phitsanulok", text:"Phitsanulok"},
	{value:"Sukhothai", text:"Sukhothai"},
	{value:"Ubon Ratchathani", text:"Ubon Ratchathani"},
	{value:"", text:"-----------"},
	{value:"North", text:"North"},
	{value:"Isaan", text:"Isaan"},
	{value:"Central", text:"Central"},
	{value:"East", text:"East"},
	{value:"South", text:"South"}
];

// Philippines
RegionDB["PH"] = [
	{value:"", text:"-----------"},
	{value:"Manila", text:"Manila"},
	{value:"Cebu", text:"Cebu"},
	{value:"Davao", text:"Davao"},
	{value:"", text:"-----------"},
	{value:"Luzon Island Groups", text:"Luzon Island Groups"},
	{value:"Visayas Island Groups", text:"Visayas Island Groups"},
	{value:"Mindanao Island Groups", text:"Mindanao Island Groups"}
];

// Brunei
RegionDB["BN"] = [
	{value:"", text:"-----------"},
	{value:"Muara", text:"Muara"},
	{value:"Tutong", text:"Tutong"},
	{value:"Belait", text:"Belait"},
	{value:"Temburong", text:"Temburong"}
];

// Cambodia
RegionDB["KH"] = [
	{value:"", text:"-----------"},
	{value:"Phnom Penh", text:"Phnom Penh"},
	{value:"Banlung", text:"Banlung"},
	{value:"Battambang", text:"Battambang"},
	{value:"Kampong Cham", text:"Kampong Cham"},
	{value:"Kampot", text:"Kampot"},
	{value:"Kompong Thom", text:"Kompong Thom"},
	{value:"Kratie", text:"Kratie"},
	{value:"Poipet", text:"Poipet"},
	{value:"Siem Reap", text:"Siem Reap"},
	{value:"Sihanoukville", text:"Sihanoukville"},
	{value:"Stung Treng", text:"Stung Treng"},
	{value:"", text:"-----------"},
	{value:"Cardamom Mountains", text:"Cardamom Mountains"},
	{value:"Central Plains", text:"Central Plains"},
	{value:"Chhlong Highlands", text:"Chhlong Highlands"},
	{value:"Dangrek Mountains", text:"Dangrek Mountains"},
	{value:"Elephant Mountains", text:"Elephant Mountains"},
	{value:"Rattanakiri Plateau", text:"Rattanakiri Plateau"}
];

// Singapore
RegionDB["SG"] = [
	{value:"", text:"-----------"},
	{value:"Singapore", text:"Singapore"}
];

// Malaysia
RegionDB["MY"] = [
	{value:"", text:"-----------"},
	{value:"Kuala Lumpur", text:"Kuala Lumpur"},
	{value:"Malacca", text:"Malacca"},
	{value:"George Town", text:"George Town"},
	{value:"Ipoh", text:"Ipoh"},
	{value:"Johor Bahru", text:"Johor Bahru"},
	{value:"Kota Kinabalu", text:"Kota Kinabalu"},
	{value:"Kuching", text:"Kuching"},
	{value:"Putrajaya", text:"Putrajaya"},
	{value:"", text:"-----------"},
	{value:"West Malaysia", text:"West Malaysia"},
	{value:"East Malaysia", text:"East Malaysia"}
];

// Indonesia
RegionDB["ID"] = [
	{value:"", text:"-----------"},
	{value:"Jakarta", text:"Jakarta"},
	{value:"Bali", text:"Bali"},
	{value:"", text:"-----------"},
	{value:"Sumatra", text:"Sumatra"},
	{value:"Kalimantan", text:"Kalimantan"},
	{value:"Java", text:"Java"},
	{value:"Sulawesi", text:"Sulawesi"},
	{value:"Maluku", text:"Maluku"},
	{value:"Nusa Tenggara", text:"Nusa Tenggara"},
	{value:"Irian Jaya", text:"Irian Jaya"}
];

// Sri Lanka
RegionDB["LK"] = [
	{value:"", text:"-----------"},
	{value:"Colombo ", text:"Colombo"},
	{value:"Galle ", text:"Galle"},
	{value:"Kandy", text:"Kandy"},
	{value:"Nuwara Elya", text:"Nuwara Elya"},
	{value:"Haputale ", text:"Haputale"},
	{value:"Trincomalee", text:"Trincomalee"},
	{value:"Anuradhapura", text:"Anuradhapura"},
	{value:"Polannaruwa", text:"Polannaruwa"},
	{value:"Kurunegala", text:"Kurunegala"},
	{value:"Ratnapura", text:"Ratnapura"},
	{value:"Jaffna", text:"Jaffna"},
	{value:"", text:"-----------"},
	{value:"Central", text:"Central"},
	{value:"Eastern", text:"Eastern"},
	{value:"North Central", text:"North Central"},
	{value:"Northern", text:"Northern"},
	{value:"North Western", text:"North Western"},
	{value:"Sabaragamuwa", text:"Sabaragamuwa"},
	{value:"Southern", text:"Southern"},
	{value:"Uva", text:"Uva"},
	{value:"Western", text:"Western"}
];

// Kenya
RegionDB["KE"] = [
	{value:"", text:"-----------"},
	{value:"Nairobi", text:"Nairobi"},
	{value:"Mombasa", text:"Mombasa"},
	{value:"Kisumu", text:"Kisumu"},
	{value:"Nanyuki", text:"Nanyuki"},
	{value:"Nakuru", text:"Nakuru"},
	{value:"Nyeri", text:"Nyeri"}
];

// Uganda
RegionDB["UG"] = [
	{value:"", text:"-----------"},
	{value:"Kampala", text:"Kampala"},
	{value:"haggling", text:"haggling"},
	{value:"Entebbe", text:"Entebbe"},
	{value:"Jinja", text:"Jinja"},
	{value:"Fort Portal", text:"Fort Portal"},
	{value:"Kabale", text:"Kabale"},
	{value:"Kisoro", text:"Kisoro"},
	{value:"Rakai", text:"Rakai"}
];

// Tanzania
RegionDB["TZ"] = [
	{value:"", text:"-----------"},
	{value:"Dar es Salaam", text:"Dar es Salaam"},
	{value:"Arusha", text:"Arusha"},
	{value:"Dodoma", text:"Dodoma"},
	{value:"Moshi", text:"Moshi"},
	{value:"Iringa", text:"Iringa"}
];

// South Africa
RegionDB["ZA"] = [
	{value:"", text:"-----------"},
	{value:"Bloemfontein", text:"Bloemfontein"},
	{value:"Cape Town", text:"Cape Town"},
	{value:"Pretoria", text:"Pretoria"},
	{value:"Durban", text:"Durban"},
	{value:"East London", text:"East London"},
	{value:"George", text:"George"},
	{value:"Johannesburg", text:"Johannesburg"},
	{value:"Kimberley", text:"Kimberley"},
	{value:"Port Elizabeth", text:"Port Elizabeth"},
	{value:"Upington", text:"Upington"}
];

// Zimbabwe
RegionDB["ZW"] = [
	{value:"", text:"-----------"},
	{value:"Harare", text:"Harare"},
	{value:"Bulawayo", text:"Bulawayo"},
	{value:"Victoria Falls", text:"Victoria Falls"},
	{value:"Mutare", text:"Mutare"}
];

// Botswana
RegionDB["BW"] = [
	{value:"", text:"-----------"},
	{value:"Gaborone", text:"Gaborone"},
	{value:"Francistown", text:"Francistown"},
	{value:"Ghanzi", text:"Ghanzi"},
	{value:"Kasane", text:"Kasane"},
	{value:"Maun", text:"Maun"},
	{value:"Nata", text:"Nata"},
	{value:"Gweta", text:"Gweta"},
	{value:"Kanye", text:"Kanye"},
	{value:"Tsabong", text:"Tsabong"},
	{value:"Mogapi", text:"Mogapi"}
];

// Morocco
RegionDB["MA"] = [
	{value:"", text:"-----------"},
	{value:"Agadir", text:"Agadir"},
	{value:"Amizmiz", text:"Amizmiz"},
	{value:"Asni", text:"Asni"},
	{value:"Casablanca", text:"Casablanca"},
	{value:"Chefchaouen", text:"Chefchaouen"},
	{value:"Essaouira", text:"Essaouira"},
	{value:"Fez", text:"Fez"},
	{value:"Marrakech", text:"Marrakech"},
	{value:"Meknes", text:"Meknes"},
	{value:"Ouarzazate", text:"Ouarzazate"},
	{value:"Rabat", text:"Rabat"},
	{value:"Rissani", text:"Rissani"},
	{value:"Tangier", text:"Tangier"},
	{value:"Tetouan", text:"Tetouan"}
];

// Tunisia
RegionDB["TN"] = [
	{value:"", text:"-----------"},
	{value:"Tunis", text:"Tunis"},
	{value:"Bizerte", text:"Bizerte"},
	{value:"El Kef", text:"El Kef"},
	{value:"Gabes", text:"Gabes"},
	{value:"La Goulette", text:"La Goulette"},
	{value:"Nefta", text:"Nefta"},
	{value:"Hammamet", text:"Hammamet"},
	{value:"Sfax", text:"Sfax"},
	{value:"Sousse", text:"Sousse"},
	{value:"Tozeur", text:"Tozeur"}
];

// Egypt
RegionDB["EG"] = [
	{value:"", text:"-----------"},
	{value:"Cairo", text:"Cairo"},
	{value:"Alexandria", text:"Alexandria"},
	{value:"Aswan", text:"Aswan"},
	{value:"Luxor", text:"Luxor"},
	{value:"Siwa", text:"Siwa"}
];

// Nigeria
RegionDB["NG"] = [
	{value:"", text:"-----------"},
	{value:"Abuja", text:"Abuja"},
	{value:"Benin City", text:"Benin City"},
	{value:"Calabar", text:"Calabar"},
	{value:"Lagos", text:"Lagos"},
	{value:"Port Harcourt", text:"Port Harcourt"},
	{value:"Sapele", text:"Sapele"},
	{value:"Warri", text:"Warri"}
];

// Ghana
RegionDB["GH"] = [
	{value:"", text:"-----------"},
	{value:"Accra", text:"Accra"},
	{value:"Bolgatanga", text:"Bolgatanga"},
	{value:"Cape Coast", text:"Cape Coast"},
	{value:"Kumasi", text:"Kumasi"},
	{value:"Takoradi", text:"Takoradi"},
	{value:"Tamale", text:"Tamale"},
	{value:"", text:"-----------"},
	{value:"Ashanti", text:"Ashanti"},
	{value:"Brong-Ahafo", text:"Brong-Ahafo"},
	{value:"Central", text:"Central"},
	{value:"Eastern", text:"Eastern"},
	{value:"Greater Accra", text:"Greater Accra"},
	{value:"Northern", text:"Northern"},
	{value:"Upper East", text:"Upper East"},
	{value:"Upper West", text:"Upper West"},
	{value:"Volta", text:"Volta"},
	{value:"Western", text:"Western"}
];

// Reunion
RegionDB["RE"] = [
	{value:"", text:"-----------"},
	{value:"Saint-Denis", text:"Saint-Denis"},
	{value:"Saint-Gilles", text:"Saint-Gilles"},
	{value:"Saint-Leu", text:"Saint-Leu"},
	{value:"Saint-Pierre", text:"Saint-Pierre"},
	{value:"Etang-Sale", text:"Etang-Sale"},
	{value:"Saint-Benoit", text:"Saint-Benoit"}
];

// Ukraine
RegionDB["UA"] = [
	{value:"", text:"-----------"},
	{value:"Kiev", text:"Kiev"},
	{value:"Odessa", text:"Odessa"},
	{value:"Kharkov", text:"Kharkov"},
	{value:"Yalta", text:"Yalta"},
	{value:"Dnepropetrovsk", text:"Dnepropetrovsk"}
];

// Turkey
RegionDB["TR"] = [
	{value:"", text:"-----------"},
	{value:"Ankara", text:"Ankara"},
	{value:"Antalya", text:"Antalya"},
	{value:"Bodrum", text:"Bodrum"},
	{value:"Bursa", text:"Bursa"},
	{value:"Derince", text:"Derince"},
	{value:"Goreme", text:"Goreme"},
	{value:"Istanbul", text:"Istanbul"},
	{value:"Izmir", text:"Izmir"},
	{value:"Kusadasi", text:"Kusadasi"},
	{value:"Marmaris", text:"Marmaris"}
];

// Afghanistan
RegionDB["AF"] = [
	{value:"", text:"-----------"},
	{value:"Kabul", text:"Kabul"}
];

// Kazakhstan
RegionDB["KZ"] = [
	{value:"", text:"-----------"},
	{value:"Astana", text:"Astana"},
	{value:"Almaty", text:"Almaty"},
	{value:"Atyrau", text:"Atyrau"}
];

// Kyrgyzstan
RegionDB["KG"] = [
	{value:"", text:"-----------"},
	{value:"Bishkek", text:"Bishkek"},
	{value:"Issyk-Kul", text:"Issyk-Kul"},
	{value:"Frunze", text:"Frunze"}
];

// Uzbekistan
RegionDB["UZ"] = [
	{value:"", text:"-----------"},
	{value:"Tashkent", text:"Tashkent"},
	{value:"Samarkand", text:"Samarkand"},
	{value:"Bukhara", text:"Bukhara"}
];

// Pakistan
RegionDB["PK"] = [
	{value:"", text:"-----------"},
	{value:"Islamabad", text:"Islamabad"},
	{value:"Lahore", text:"Lahore"},
	{value:"Karachi", text:"Karachi"}
];

// Qatar
RegionDB["QA"] = [
	{value:"", text:"-----------"},
	{value:"Doha", text:"Doha"},
	{value:"Khor", text:"Khor"},
	{value:"Rayyan", text:"Rayyan"},
	{value:"Zubara", text:"Zubara"}
];

// UAE
RegionDB["AE"] = [
	{value:"", text:"-----------"},
	{value:"Abu Dhabi", text:"Abu Dhabi"},
	{value:"Ajman", text:"Ajman"},
	{value:"Al Ain", text:"Al Ain"},
	{value:"Dubai", text:"Dubai"},
	{value:"Sharjah", text:"Sharjah"}
];

// Saudi Arabia
RegionDB["SA"] = [
	{value:"", text:"-----------"},
	{value:"Abha", text:"Abha"},
	{value:"Dhahran", text:"Dhahran"},
	{value:"Jeddah", text:"Jeddah"},
	{value:"Mecca", text:"Mecca"},
	{value:"Medina", text:"Medina"},
	{value:"Riyadh", text:"Riyadh"},
	{value:"Taif", text:"Taif"}
];

// Oman
RegionDB["OM"] = [
	{value:"", text:"-----------"},
	{value:"Muscat", text:"Muscat"},
	{value:"Falaj al Qabail", text:"Falaj al Qabail"},
	{value:"Ibra", text:"Ibra"},
	{value:"Nizwa", text:"Nizwa"},
	{value:"Salalah", text:"Salalah"},
	{value:"Sohar", text:"Sohar"}
];

// Yemen
RegionDB["YE"] = [
	{value:"", text:"-----------"},
	{value:"Sanaa", text:"Sanaa"},
	{value:"Aden", text:"Aden"},
	{value:"Kawkaban", text:"Kawkaban"},
	{value:"Shibam", text:"Shibam"}
];

// Jordan
RegionDB["JO"] = [
	{value:"", text:"-----------"},
	{value:"Amman", text:"Amman"},
	{value:"Jerash", text:"Jerash"},
	{value:"Irbid", text:"Irbid"},
	{value:"Petra", text:"Petra"}
];

// Syria
RegionDB["SY"] = [
	{value:"", text:"-----------"},
	{value:"Damascus", text:"Damascus"},
	{value:"Aleppo", text:"Aleppo"},
	{value:"Deir-az-Zur", text:"Deir-az-Zur"},
	{value:"Hama", text:"Hama"},
	{value:"Tartous", text:"Tartous"}
];

// Israel
RegionDB["IL"] = [
	{value:"", text:"-----------"},
	{value:"Jerusalem", text:"Jerusalem"},
	{value:"Tel Aviv", text:"Tel Aviv"},
	{value:"Eilat", text:"Eilat"},
	{value:"Haifa", text:"Haifa"}
];

// Palestinian Territory, Occupied
RegionDB["PS"] = [
	{value:"", text:"-----------"},
	{value:"Jerusalem", text:"Jerusalem"},
	{value:"Ramallah", text:"Ramallah"},
	{value:"West Bank", text:"West Bank"},
	{value:"Gaza", text:"Gaza"}
];

// Iran
RegionDB["IR"] = [
	{value:"", text:"-----------"},
	{value:"Tehran", text:"Tehran"},
	{value:"Isfahan", text:"Isfahan"},
	{value:"Shiraz", text:"Shiraz"}
];

// Iraq
RegionDB["IQ"] = [
	{value:"", text:"-----------"},
	{value:"Baghdad", text:"Baghdad"},
	{value:"Arbil", text:"Arbil"}
];

// Kuwait
RegionDB["KW"] = [
	{value:"", text:"-----------"},
	{value:"Kuwait", text:"Kuwait"}
];

// Lebanon
RegionDB["LB"] = [
	{value:"", text:"-----------"},
	{value:"Beirut", text:"Beirut"},
	{value:"Tripoli", text:"Tripoli"},
	{value:"Jounieh", text:"Jounieh"},
	{value:"Broummana", text:"Broummana"}
];

// Fiji
RegionDB["FJ"] = [
	{value:"", text:"-----------"},
	{value:"Suva", text:"Suva"},
	{value:"Lautoka", text:"Lautoka"},
	{value:"", text:"-----------"},
	{value:"Viti Levu", text:"Viti Levu"},
	{value:"Vanua Levu", text:"Vanua Levu"},
	{value:"Taveuni", text:"Taveuni"},
	{value:"Yasawa Islands", text:"Yasawa Islands"},
	{value:"Nananu-i-Ra Island", text:"Nananu-i-Ra Island"},
	{value:"Mamanuca Islands", text:"Mamanuca Islands"},
	{value:"Lomaiviti Islands", text:"Lomaiviti Islands"},
	{value:"Lau Islands", text:"Lau Islands"}
];

// French Polynesia
RegionDB["PF"] = [
	{value:"", text:"-----------"},
	{value:"Tahiti", text:"Tahiti"},
	{value:"Moorea", text:"Moorea"},
	{value:"", text:"-----------"},
	{value:"Marquesas Islands", text:"Marquesas Islands"},
	{value:"Tuamotu Islands", text:"Tuamotu Islands"},
	{value:"Society Islands", text:"Society Islands"},
	{value:"Austral Islands", text:"Austral Islands"},
	{value:"Gambier Islands", text:"Gambier Islands"}
];

// Belarus
RegionDB["BY"] = [
	{value:"", text:"-----------"},
	{value:"Minsk", text:"Minsk"},
	{value:"Brest", text:"Brest"},
	{value:"Homel", text:"Homel"},
	{value:"Hrodna", text:"Hrodna"},
	{value:"Nesvizh", text:"Nesvizh"},
	{value:"Sharkovshchina", text:"Sharkovshchina"},
	{value:"Vitsyebsk", text:"Vitsyebsk"}
];

// Estonia
RegionDB["EE"] = [
	{value:"", text:"-----------"},
	{value:"Harjumaa", text:"Harjumaa"},
	{value:"Hiiumaa", text:"Hiiumaa"},
	{value:"Ida-Virumaa", text:"Ida-Virumaa"},
	{value:"Jarvamaa", text:"Jarvamaa"},
	{value:"Jogevamaa", text:"Jogevamaa"},
	{value:"Laanemaa", text:"Laanemaa"},
	{value:"Laane-Virumaa", text:"Laane-Virumaa"},
	{value:"Parnumaa", text:"Parnumaa"},
	{value:"Polvamaa", text:"Polvamaa"},
	{value:"Raplamaa", text:"Raplamaa"},
	{value:"Saaremaa", text:"Saaremaa"},
	{value:"Tartumaa", text:"Tartumaa"},
	{value:"Valgamaa", text:"Valgamaa"},
	{value:"Viljandimaa", text:"Viljandimaa"},
	{value:"Vorumaa", text:"Vorumaa"}
];


// New Caledonia
RegionDB["NC"] = [
	{value:"", text:"-----------"},
	{value:"Noumea", text:"Noumea"},
	{value:"Hiengene", text:"Hiengene"},
	{value:"Bourail", text:"Bourail"},
	{value:"Mueo", text:"Mueo"},
	{value:"Thio", text:"Thio"},
	{value:"", text:"-----------"},
	{value:"South Province ", text:"South Province"},
	{value:"North Province", text:"North Province"},
	{value:"Loyalty Islands Province", text:"Loyalty Islands Province"}
];


// Vanuatu
RegionDB["VU"] = [
	{value:"", text:"-----------"},
	{value:"Luganville", text:"Luganville"},
	{value:"Port-Vila", text:"Port-Vila"},
	{value:"", text:"-----------"},
	{value:"Torba ", text:"Torba"},
	{value:"Sanma", text:"Sanma"},
	{value:"Penama", text:"Penama"},
	{value:"Malampa", text:"Malampa"},
	{value:"Shefa", text:"Shefa"},
	{value:"Tafea", text:"Tafea"}
];


function setRegion(chooser,all) {
    var newElem;
    var where = (navigator.appName == "Microsoft Internet Explorer") ? -1 : null;
    var F14Chooser = chooser.form.elements["F14"];
    while (F14Chooser.options.length) {
        F14Chooser.remove(0);
    }
    var choice = chooser.options[chooser.selectedIndex].value;
    var db = RegionDB[choice];
    newElem = document.createElement("option");
    newElem.text = "- Select region -";
    newElem.value = "";
    F14Chooser.add(newElem, where);
    if (all) {
	    newElem = document.createElement("option");
	    newElem.text = "-----------";
	    newElem.value = "";
		F14Chooser.add(newElem, where);
	    newElem = document.createElement("option");
	    newElem.text = "All area";
	    newElem.value = "ALL";
		F14Chooser.add(newElem, where);
    }
    if (choice != "") {
        for (var i = 0; i < db.length; i++) {
            newElem = document.createElement("option");
            newElem.text = db[i].text;
            newElem.value = db[i].value;
            F14Chooser.add(newElem, where);
        }
    }
    var choice = chooser.options[chooser.selectedIndex].value;
}

// guests_updater.html p
function setRegionF15(chooser,all) {
    var newElem;
    var where = (navigator.appName == "Microsoft Internet Explorer") ? -1 : null;
    var F15Chooser = chooser.form.elements["F15"];
    while (F15Chooser.options.length) {
        F15Chooser.remove(0);
    }
    var choice = chooser.options[chooser.selectedIndex].value;
    var db = RegionDB[choice];
    newElem = document.createElement("option");
    newElem.text = "- Select region -";
    newElem.value = "";
    F15Chooser.add(newElem, where);
    if (all) {
	    newElem = document.createElement("option");
	    newElem.text = "-----------";
	    newElem.value = "";
		F15Chooser.add(newElem, where);
	    newElem = document.createElement("option");
	    newElem.text = "All area";
	    newElem.value = "ALL";
		F15Chooser.add(newElem, where);
    }
    if (choice != "") {
        for (var i = 0; i < db.length; i++) {
            newElem = document.createElement("option");
            newElem.text = db[i].text;
            newElem.value = db[i].value;
            F15Chooser.add(newElem, where);
        }
    }
    var choice = chooser.options[chooser.selectedIndex].value;
}

function setCurrency(chooser) {
	document.getElementById("NZ").style.display="none";
	document.getElementById("AU").style.display="none";
	document.getElementById("CA").style.display="none";
	document.getElementById("GB").style.display="none";
	document.getElementById("US").style.display="none";
	document.getElementById("FI").style.display="none";
	document.getElementById("IE").style.display="none";
	document.getElementById("DE").style.display="none";
	document.getElementById("NL").style.display="none";
	document.getElementById("BE").style.display="none";
	document.getElementById("LU").style.display="none";
	document.getElementById("FR").style.display="none";
	document.getElementById("AT").style.display="none";
	document.getElementById("IT").style.display="none";
	document.getElementById("GR").style.display="none";
	document.getElementById("ES").style.display="none";
	document.getElementById("PT").style.display="none";
	document.getElementById("MT").style.display="none";
	document.getElementById("NO").style.display="none";
	document.getElementById("SE").style.display="none";
	document.getElementById("RU").style.display="none";
	document.getElementById("DK").style.display="none";
	document.getElementById("PL").style.display="none";
	document.getElementById("CH").style.display="none";
	document.getElementById("IS").style.display="none";
	document.getElementById("UA").style.display="none";
	document.getElementById("RO").style.display="none";
	document.getElementById("BG").style.display="none";
	document.getElementById("HR").style.display="none";
	document.getElementById("HU").style.display="none";
	document.getElementById("CZ").style.display="none";
	document.getElementById("MX").style.display="none";
	document.getElementById("CR").style.display="none";
	document.getElementById("NI").style.display="none";
	document.getElementById("GT").style.display="none";
	document.getElementById("GD").style.display="none";
	document.getElementById("AR").style.display="none";
	document.getElementById("BO").style.display="none";
	document.getElementById("BR").style.display="none";
	document.getElementById("CL").style.display="none";
	document.getElementById("CO").style.display="none";
	document.getElementById("EC").style.display="none";
	document.getElementById("PE").style.display="none";
	document.getElementById("VE").style.display="none";
	document.getElementById("UY").style.display="none";
	document.getElementById("PY").style.display="none";
	document.getElementById("JP").style.display="none";
	document.getElementById("KR").style.display="none";
	document.getElementById("CN").style.display="none";
	document.getElementById("TW").style.display="none";
	document.getElementById("MN").style.display="none";
	document.getElementById("HK").style.display="none";
	document.getElementById("NP").style.display="none";
	document.getElementById("BD").style.display="none";
	document.getElementById("IN").style.display="none";
	document.getElementById("MM").style.display="none";
	document.getElementById("VN").style.display="none";
	document.getElementById("LA").style.display="none";
	document.getElementById("BT").style.display="none";
	document.getElementById("TH").style.display="none";
	document.getElementById("PH").style.display="none";
	document.getElementById("BN").style.display="none";
	document.getElementById("KH").style.display="none";
	document.getElementById("SG").style.display="none";
	document.getElementById("MY").style.display="none";
	document.getElementById("ID").style.display="none";
	document.getElementById("LK").style.display="none";
	document.getElementById("KE").style.display="none";
	document.getElementById("UG").style.display="none";
	document.getElementById("TZ").style.display="none";
	document.getElementById("ZA").style.display="none";
	document.getElementById("ZW").style.display="none";
	document.getElementById("MA").style.display="none";
	document.getElementById("TN").style.display="none";
	document.getElementById("EG").style.display="none";
	document.getElementById("NG").style.display="none";
	document.getElementById("RE").style.display="none";
	document.getElementById("UA").style.display="none";
	document.getElementById("TR").style.display="none";
	document.getElementById("AF").style.display="none";
	document.getElementById("KZ").style.display="none";
	document.getElementById("KG").style.display="none";
	document.getElementById("UZ").style.display="none";
	document.getElementById("PK").style.display="none";
	document.getElementById("QA").style.display="none";
	document.getElementById("AE").style.display="none";
	document.getElementById("SA").style.display="none";
	document.getElementById("OM").style.display="none";
	document.getElementById("YE").style.display="none";
	document.getElementById("JO").style.display="none";
	document.getElementById("SY").style.display="none";
	document.getElementById("IL").style.display="none";
	document.getElementById("PS").style.display="none";
	document.getElementById("IR").style.display="none";
	document.getElementById("IQ").style.display="none";
	document.getElementById("KW").style.display="none";
	document.getElementById("LB").style.display="none";
	document.getElementById("FJ").style.display="none";
	document.getElementById("PF").style.display="none";
	document.getElementById("GH").style.display="none";
	document.getElementById("BY").style.display="none";
	document.getElementById("EE").style.display="none";
	document.getElementById("BW").style.display="none";
	document.getElementById("NC").style.display="none";
	document.getElementById("VU").style.display="none";

	if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "NZ") {
		document.getElementById("NZ").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "AU") {
		document.getElementById("AU").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "CA") {
		document.getElementById("CA").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "GB") {
		document.getElementById("GB").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "US") {
		document.getElementById("US").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "FI") {
		document.getElementById("FI").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "IE") {
		document.getElementById("IE").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "DE") {
		document.getElementById("DE").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "NL") {
		document.getElementById("NL").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "BE") {
		document.getElementById("BE").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "LU") {
		document.getElementById("LU").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "FR") {
		document.getElementById("FR").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "AT") {
		document.getElementById("AT").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "IT") {
		document.getElementById("IT").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "GR") {
		document.getElementById("GR").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "ES") {
		document.getElementById("ES").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "PT") {
		document.getElementById("PT").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "MT") {
		document.getElementById("MT").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "NO") {
		document.getElementById("NO").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "SE") {
		document.getElementById("SE").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "RU") {
		document.getElementById("RU").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "DK") {
		document.getElementById("DK").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "PL") {
		document.getElementById("PL").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "CH") {
		document.getElementById("CH").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "IS") {
		document.getElementById("IS").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "UA") {
		document.getElementById("UA").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "RO") {
		document.getElementById("RO").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "BG") {
		document.getElementById("BG").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "HR") {
		document.getElementById("HR").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "HU") {
		document.getElementById("HU").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "CZ") {
		document.getElementById("CZ").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "MX") {
		document.getElementById("MX").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "CR") {
		document.getElementById("CR").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "NI") {
		document.getElementById("NI").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "GT") {
		document.getElementById("GT").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "GD") {
		document.getElementById("GD").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "AR") {
		document.getElementById("AR").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "BO") {
		document.getElementById("BO").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "BR") {
		document.getElementById("BR").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "CL") {
		document.getElementById("CL").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "CO") {
		document.getElementById("CO").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "EC") {
		document.getElementById("EC").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "PE") {
		document.getElementById("PE").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "VE") {
		document.getElementById("VE").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "UY") {
		document.getElementById("UY").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "PY") {
		document.getElementById("PY").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "JP") {
		document.getElementById("JP").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "KR") {
		document.getElementById("KR").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "CN") {
		document.getElementById("CN").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "TW") {
		document.getElementById("TW").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "MN") {
		document.getElementById("MN").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "HK") {
		document.getElementById("HK").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "NP") {
		document.getElementById("NP").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "BD") {
		document.getElementById("BD").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "IN") {
		document.getElementById("IN").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "MM") {
		document.getElementById("MM").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "VN") {
		document.getElementById("VN").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "LA") {
		document.getElementById("LA").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "BT") {
		document.getElementById("BT").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "TH") {
		document.getElementById("TH").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "PH") {
		document.getElementById("PH").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "BN") {
		document.getElementById("BN").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "KH") {
		document.getElementById("KH").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "SG") {
		document.getElementById("SG").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "MY") {
		document.getElementById("MY").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "ID") {
		document.getElementById("ID").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "LK") {
		document.getElementById("LK").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "KE") {
		document.getElementById("KE").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "UG") {
		document.getElementById("UG").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "TZ") {
		document.getElementById("TZ").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "ZA") {
		document.getElementById("ZA").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "ZW") {
		document.getElementById("ZW").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "MA") {
		document.getElementById("MA").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "TN") {
		document.getElementById("TN").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "EG") {
		document.getElementById("EG").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "NG") {
		document.getElementById("NG").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "RE") {
		document.getElementById("RE").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "UA") {
		document.getElementById("UA").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "TR") {
		document.getElementById("TR").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "AF") {
		document.getElementById("AF").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "KZ") {
		document.getElementById("KZ").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "KG") {
		document.getElementById("KG").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "UZ") {
		document.getElementById("UZ").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "PK") {
		document.getElementById("PK").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "QA") {
		document.getElementById("QA").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "AE") {
		document.getElementById("AE").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "SA") {
		document.getElementById("SA").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "OM") {
		document.getElementById("OM").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "YE") {
		document.getElementById("YE").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "JO") {
		document.getElementById("JO").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "SY") {
		document.getElementById("SY").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "IL") {
		document.getElementById("IL").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "PS") {
		document.getElementById("PS").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "IR") {
		document.getElementById("IR").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "IQ") {
		document.getElementById("IQ").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "KW") {
		document.getElementById("KW").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "LB") {
		document.getElementById("LB").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "FJ") {
		document.getElementById("FJ").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "PF") {
		document.getElementById("PF").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "GH") {
		document.getElementById("GH").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "BY") {
		document.getElementById("BY").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "EE") {
		document.getElementById("EE").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "BW") {
		document.getElementById("BW").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "NC") {
		document.getElementById("NC").style.display="block";
	} else if (document.hsw.F13.options[document.hsw.F13.selectedIndex].value == "VU") {
		document.getElementById("VU").style.display="block";
	}
}


/* cookies.js */
/*
     Example File From "JavaScript and DHTML Cookbook"
     Published by O'Reilly & Associates
     Copyright 2003 Danny Goodman
*/

// utility function to retrieve a future expiration date in proper format;
// pass three integer parameters for the number of days, hours,
// and minutes from now you want the cookie to expire; all three
// parameters required, so use zeros where appropriate
function getExpDate(days, hours, minutes) {
    var expDate = new Date();
    if (typeof days == "number" && typeof hours == "number" && typeof hours == "number") {
        expDate.setDate(expDate.getDate() + parseInt(days));
        expDate.setHours(expDate.getHours() + parseInt(hours));
        expDate.setMinutes(expDate.getMinutes() + parseInt(minutes));
        return expDate.toGMTString();
    }
}

// utility function called by getCookie()
function getCookieVal(offset) {
    var endstr = document.cookie.indexOf (";", offset);
    if (endstr == -1) {
        endstr = document.cookie.length;
    }
    return unescape(document.cookie.substring(offset, endstr));
}

// primary function to retrieve cookie by name
function getCookie(name) {
    var arg = name + "=";
    var alen = arg.length;
    var clen = document.cookie.length;
    var i = 0;
    while (i < clen) {
        var j = i + alen;
        if (document.cookie.substring(i, j) == arg) {
            return getCookieVal(j);
        }
        i = document.cookie.indexOf(" ", i) + 1;
        if (i == 0) break; 
    }
    return null;
}

// store cookie value with optional details as needed
function setCookie(name, value, expires, path, domain, secure) {
    document.cookie = name + "=" + escape (value) +
        ((expires) ? "; expires=" + expires : "") +
        ((path) ? "; path=" + path : "") +
        ((domain) ? "; domain=" + domain : "") +
        ((secure) ? "; secure" : "");
}

// remove the cookie by setting ancient expiration date
function deleteCookie(name,path,domain) {
    if (getCookie(name)) {
        document.cookie = name + "=" +
            ((path) ? "; path=" + path : "") +
            ((domain) ? "; domain=" + domain : "") +
            "; expires=Thu, 01-Jan-70 00:00:01 GMT";
    }
}

function formCookie () {
	var UID = getCookie("UID");
	var PSWD = getCookie("PSWD");
	var KEEP = getCookie("KEEP");
//	if (UID) {document.hsw.UID.value = UID;}
//	if (PSWD) {document.hsw.PSWD.value = PSWD;}
//	if (KEEP) {document.hsw.KEEP.checked = true;}
	document.hsw.UID.value = UID;
	document.hsw.PSWD.value = PSWD;
	document.hsw.KEEP.checked = KEEP;
}

function writeUID () {
	var UID = getCookie("UID");
//	if (UID) {document.write(UID);}
	document.write(UID);
}
