<!-- Begin
var africaArray =  new Array("('Select','',true,true)",
"('ETHIOPIA')",
"('SOMALIA')",
"('SOUTH AFRICA')",
"('Other')");
var middleeastArray =  new Array("('Select','',true,true)",
"('EGYPT')",
"('IRAN')",
"('ISRAEL')",
"('KUWAIT')",
"('LEBANON')",
"('MOROCCO')",
"('SAUDI ARABIA')",
"('SYRIA')",
"('U. A. EMIRATES')",
"('Other')");
var asiaArray =  new Array("('Select','',true,true)",
"('ARMENIA')",
"('BANGLADESH')",
"('CAMBODIA')",
"('CHINA')",
"('INDIA')",
"('INDONESIA')",
"('JAPAN')",
"('MALAYSIA')",
"('MYANMAR')",
"('NEPAL')",
"('PAKISTAN')",
"('PHILIPPINES')",
"('SINGAPORE')",
"('SOUTH KOREA')",
"('SRI LANKA')",
"('TAIWAN')",
"('THAILAND')",
"('UZBEKISTAN')",
"('VIETNAM')",
"('Other')");
var europeArray =  new Array("('Select','',true,true)",
"('ALBANIA')",
"('ALEMANIA')",
"('ANDORRA')",
"('AUSTRIA')",
"('AZERBAIJAN')",
"('BELARUS')",
"('BELGIUM')",
"('BOSNIA')",
"('BULGARIA')",
"('CROATIA')",
"('CYPRUS')",
"('CZECH REPUBLIC')",
"('DENMARK')",
"('ESTONIA')",
"('FINLAND')",
"('FRANCE')",
"('GEORGIA')",
"('GERMANY')",
"('GIBRALTAR')",
"('GREECE')",
"('GREENLAND')",
"('HUNGARY')",
"('ICELAND')",
"('IRELAND')",
"('ITALY')",
"('LATVIA')",
"('LIECHTENSTEIN')",
"('LITHUANIA')",
"('LUXEMBOURG')",
"('MACEDONIA')",
"('MALTA')",
"('MOLDOVA')",
"('MONACO')",
"('NETHERLANDS')",
"('NORWAY')",
"('POLAND')",
"('PORTUGAL')",
"('ROMANIA')",
"('RUSSIA')",
"('SERBIA AND MONTENEGRO')",
"('SLOVAKIA')",
"('SLOVENIA')",
"('SPAIN')",
"('SWEDEN')",
"('SWITZERLAND')",
"('TURKEY')",
"('UKRAINE')",
"('UNITED KINGDOM')",
"('Other')");
var australiaArray =  new Array("('Select','',true,true)",
"('AUSTRALIA')",
"('NEW ZEALAND')",
"('Other')");
var americaArray =  new Array("('Select','',true,true)",
"('ARGENTINA')",
"('BRASIL')",
"('BOLIVIA')",
"('CANADA')",
"('CHILE')",
"('COLOMBIA')",
"('COSTA RICA')",
"('CUBA')",
"('ECUADOR')",
"('EL SALVADOR')",
"('GUATEMALA')",
"('HAITI')",
"('JAMAICA')",
"('MEXICO')",
"('PANAMA')",
"('PARAGUAY')",
"('PERU')",
"('URUGUAY')",
"('USA')",
"('VENEZUELA')",
"('Other')");
function populateCountry(inForm,selected) {
var selectedArray = eval(selected + "Array");
while (selectedArray.length < inForm.provincia.options.length) {
inForm.provincia.options[(inForm.provincia.options.length - 1)] = null;
}
for (var i=0; i < selectedArray.length; i++) {
eval("inForm.provincia.options[i]=" + "new Option" + selectedArray[i]);
}
if (inForm.region.options[0].value == '') {
inForm.region.options[0]= null;
if ( navigator.appName == 'Netscape') {
if (parseInt(navigator.appVersion) < 4) {
window.history.go(0);
}
else {   	
if (navigator.platform == 'Win32' || navigator.platform == 'Win16') {
window.history.go(0);
            }
         }
      }
   }
}
function populateUSstate(inForm,selected) {  
var stateArray =  new Array("('Seleccionar provincia','',true,true)",
"('ALBACETE')",
"('ALICANTE')",
"('ALMERIA')",
"('ARABA')",
"('AVILA')",
"('BADAJOZ')",
"('BALEARES')",
"('BARCELONA')",
"('BIZKAIA')",
"('BURGOS')",
"('CACERES')",
"('CADIZ')",
"('CANARIAS')",
"('CASTELLON')",
"('CEUTA')",
"('CIUDAD REAL')",
"('CORDOBA')",
"('LA CORUŅA')",
"('CUENCA')",
"('GIRONA')",
"('GRANADA')",
"('GUADALAJARA')",
"('GIPUZCOA')",
"('HUELVA')",
"('HUESCA')",
"('JAEN')",
"('LA RIOJA ')",
"('LEON')",
"('LLEIDA')",
"('LUGO')",
"('MADRID')",
"('MALAGA')",
"('MELILLA')",
"('MURCIA')",
"('ORENSE')",
"('OVIEDO')",
"('PALENCIA')",
"('PAMPLONA')",
"('PONTEVEDRA')",
"('SALAMANCA')",
"('SANTANDER')",
"('SEGOVIA')",
"('SEVILLA')",
"('SORIA')",
"('TARRAGONA')",
"('TERUEL')",
"('TOLEDO')",
"('VALENCIA')",
"('VALLADOLID')",
"('ZAMORA')",
"('ZARAGOZA')");
if (selected == 'SPAIN') {
for (var i=0; i < stateArray.length; i++) {
eval("inForm.provincia.options[i]=" + "new Option" + stateArray[i]);
}
if ( navigator.appName == 'Netscape') {
if (parseInt(navigator.appVersion) < 4) {
window.history.go(0)
}
else {    	
if (navigator.platform == 'Win32' || navigator.platform == 'Win16') {
window.history.go(0)
         }
      }
   }
}
else {
}  
if (selected == 'Other') {
newCountry = "";
while (newCountry == ""){
newCountry=prompt ("Please enter the name of your country.", "");
}
if (newCountry != null) {
inForm.provincia.options[(inForm.provincia.options.length-1)]=new Option(newCountry,newCountry,true,true);
inForm.provincia.options[inForm.provincia.options.length]=new Option('Other, not listed','Other');
   }
}
if(inForm.provincia.options[0].text == 'Select country') {
inForm.provincia.options[0]= null;
   }
}

function comprobaCA()
{
 	if(document.globe.nom.value == "")
 	{
		alert("Dades obligatories");
		document.globe.nom.focus();
		return false;
	}
	if(document.globe.cognoms.value == "")
 	{
		alert("Dades obligatories");
		document.globe.cognoms.focus();
		return false;
	}
	if(document.globe.adresa.value == "")
 	{
		alert("Dades obligatories");
		document.globe.adresa.focus();
		return false;
	}
	if(document.globe.cp.value == "")
 	{
		alert("Dades obligatories");
		document.globe.cp.focus();
		return false;
	}
	if(document.globe.poblacio.value == "")
 	{
		alert("Dades obligatories");
		document.globe.poblacio.focus();
		return false;
	}
	if(document.globe.telefon.value == "")
 	{
		alert("Dades obligatories");
		document.globe.telefon.focus();
		return false;
	}
	if(document.globe.email.value == "")
 	{
		alert("Dades obligatories");
		document.globe.email.focus();
		return false;
	}
	if(document.globe.email.value.indexOf('@', 0) == -1 || document.globe.email.value.indexOf('.', 0) == -1)
	{
		alert("Dades incorrectes");
		document.globe.email.select();
		document.globe.email.focus();
		return false;
	}
	if(document.globe.provincia.selectedIndex == 0)
 	{
		alert("Dades obligatories");
		document.globe.provincia.focus();
		return false;
	}
	if(document.globe.lang.selectedIndex == 0)
 	{
		alert("Dades obligatories");
		document.globe.lang.focus();
		return false;
	}
}
function comprobaES()
{
 	if(document.globe.nom.value == "")
 	{
		alert("Datos obligatorios");
		document.globe.nom.focus();
		return false;
	}
	if(document.globe.cognoms.value == "")
 	{
		alert("Datos obligatorios");
		document.globe.cognoms.focus();
		return false;
	}
	/*
	if(document.globe.adresa.value == "")
 	{
		alert("Datos obligatorios");
		document.globe.adresa.focus();
		return false;
	}
	if(document.globe.cp.value == "")
 	{
		alert("Datos obligatorios");
		document.globe.cp.focus();
		return false;
	}
	*/
	if(document.globe.poblacio.value == "")
 	{
		alert("Datos obligatorios");
		document.globe.poblacio.focus();
		return false;
	}
	/*
	if(document.globe.telefon.value == "")
 	{
		alert("Datos obligatorios");
		document.globe.telefon.focus();
		return false;
	}
	*/
	if(document.globe.email.value == "")
 	{
		alert("Datos obligatorios");
		document.globe.email.focus();
		return false;
	}
	if(document.globe.email.value.indexOf('@', 0) == -1 || document.globe.email.value.indexOf('.', 0) == -1)
	{
		alert("Datos incorrectos");
		document.globe.email.select();
		document.globe.email.focus();
		return false;
	}
	if(document.globe.provincia.selectedIndex == 0)
 	{
		alert("Datos obligatorios");
		document.globe.provincia.focus();
		return false;
	}
	if(document.globe.lang.selectedIndex == 0)
 	{
		alert("Datos obligatorios");
		document.globe.lang.focus();
		return false;
	}
}
function comprobaEN()
{
 	if(document.globe.nom.value == "")
 	{
		alert("Obligatory data");
		document.globe.nom.focus();
		return false;
	}
	if(document.globe.cognoms.value == "")
 	{
		alert("Obligatory data");
		document.globe.cognoms.focus();
		return false;
	}
	if(document.globe.adresa.value == "")
 	{
		alert("Obligatory data");
		document.globe.adresa.focus();
		return false;
	}
	if(document.globe.cp.value == "")
 	{
		alert("Obligatory data");
		document.globe.cp.focus();
		return false;
	}
	if(document.globe.poblacio.value == "")
 	{
		alert("Obligatory data");
		document.globe.poblacio.focus();
		return false;
	}
	if(document.globe.telefon.value == "")
 	{
		alert("Obligatory data");
		document.globe.telefon.focus();
		return false;
	}
	if(document.globe.email.value == "")
 	{
		alert("Obligatory data");
		document.globe.email.focus();
		return false;
	}
	if(document.globe.email.value.indexOf('@', 0) == -1 || document.globe.email.value.indexOf('.', 0) == -1)
	{
		alert("Incorrect data");
		document.globe.email.select();
		document.globe.email.focus();
		return false;
	}
	if(document.globe.provincia.selectedIndex == 0)
 	{
		alert("Obligatory data");
		document.globe.provincia.focus();
		return false;
	}
	if(document.globe.lang.selectedIndex == 0)
 	{
		alert("Obligatory data");
		document.globe.lang.focus();
		return false;
	}
}
function comprobaDE()
{
 	if(document.globe.nom.value == "")
 	{
		alert("Obligatorische Daten");
		document.globe.nom.focus();
		return false;
	}
	if(document.globe.cognoms.value == "")
 	{
		alert("Obligatorische Daten");
		document.globe.cognoms.focus();
		return false;
	}
	if(document.globe.adresa.value == "")
 	{
		alert("Obligatorische Daten");
		document.globe.adresa.focus();
		return false;
	}
	if(document.globe.cp.value == "")
 	{
		alert("Obligatorische Daten");
		document.globe.cp.focus();
		return false;
	}
	if(document.globe.poblacio.value == "")
 	{
		alert("Obligatorische Daten");
		document.globe.poblacio.focus();
		return false;
	}
	if(document.globe.telefon.value == "")
 	{
		alert("Obligatorische Daten");
		document.globe.telefon.focus();
		return false;
	}
	if(document.globe.email.value == "")
 	{
		alert("Obligatorische Daten");
		document.globe.email.focus();
		return false;
	}
	if(document.globe.email.value.indexOf('@', 0) == -1 || document.globe.email.value.indexOf('.', 0) == -1)
	{
		alert("Falsche Daten");
		document.globe.email.select();
		document.globe.email.focus();
		return false;
	}
	if(document.globe.provincia.selectedIndex == 0)
 	{
		alert("Obligatorische Daten");
		document.globe.provincia.focus();
		return false;
	}
	if(document.globe.lang.selectedIndex == 0)
 	{
		alert("Obligatorische Daten");
		document.globe.lang.focus();
		return false;
	}
}
function comprobaEU()
{
 	if(document.globe.nom.value == "")
 	{
		alert("Nahitaez bete beharrekoak");
		document.globe.nom.focus();
		return false;
	}
	if(document.globe.cognoms.value == "")
 	{
		alert("Nahitaez bete beharrekoak");
		document.globe.cognoms.focus();
		return false;
	}
	if(document.globe.adresa.value == "")
 	{
		alert("Nahitaez bete beharrekoak");
		document.globe.adresa.focus();
		return false;
	}
	if(document.globe.cp.value == "")
 	{
		alert("Nahitaez bete beharrekoak");
		document.globe.cp.focus();
		return false;
	}
	if(document.globe.poblacio.value == "")
 	{
		alert("Nahitaez bete beharrekoak");
		document.globe.poblacio.focus();
		return false;
	}
	if(document.globe.telefon.value == "")
 	{
		alert("Nahitaez bete beharrekoak");
		document.globe.telefon.focus();
		return false;
	}
	if(document.globe.email.value == "")
 	{
		alert("Nahitaez bete beharrekoak");
		document.globe.email.focus();
		return false;
	}
	if(document.globe.email.value.indexOf('@', 0) == -1 || document.globe.email.value.indexOf('.', 0) == -1)
	{
		alert("Nahitaez bete beharrekoak");
		document.globe.email.select();
		document.globe.email.focus();
		return false;
	}
	if(document.globe.provincia.selectedIndex == 0)
 	{
		alert("Nahitaez bete beharrekoak");
		document.globe.provincia.focus();
		return false;
	}
	if(document.globe.lang.selectedIndex == 0)
 	{
		alert("Nahitaez bete beharrekoak");
		document.globe.lang.focus();
		return false;
	}
}
function comprobaFR()
{
 	if(document.globe.nom.value == "")
 	{
		alert("Champs obligatoires");
		document.globe.nom.focus();
		return false;
	}
	if(document.globe.cognoms.value == "")
 	{
		alert("Champs obligatoires");
		document.globe.cognoms.focus();
		return false;
	}
	if(document.globe.adresa.value == "")
 	{
		alert("Champs obligatoires");
		document.globe.adresa.focus();
		return false;
	}
	if(document.globe.cp.value == "")
 	{
		alert("Champs obligatoires");
		document.globe.cp.focus();
		return false;
	}
	if(document.globe.poblacio.value == "")
 	{
		alert("Champs obligatoires");
		document.globe.poblacio.focus();
		return false;
	}
	if(document.globe.telefon.value == "")
 	{
		alert("Champs obligatoires");
		document.globe.telefon.focus();
		return false;
	}
	if(document.globe.email.value == "")
 	{
		alert("Champs obligatoires");
		document.globe.email.focus();
		return false;
	}
	if(document.globe.email.value.indexOf('@', 0) == -1 || document.globe.email.value.indexOf('.', 0) == -1)
	{
		alert("Champs obligatoires");
		document.globe.email.select();
		document.globe.email.focus();
		return false;
	}
	if(document.globe.provincia.selectedIndex == 0)
 	{
		alert("Champs obligatoires");
		document.globe.provincia.focus();
		return false;
	}
	if(document.globe.lang.selectedIndex == 0)
 	{
		alert("Champs obligatoires");
		document.globe.lang.focus();
		return false;
	}
}
// End -->
