function dReplace ( data )
{
	var o = {"?":"a","?":"e","?":"i","?":"o","?":"u","?":"a","?":"e","?":"i","?":"o","?":"u","?":"n","-":"-"," ":"","(":"",")":"","'":"","/":"",":":"",",":"","?":"","?":""};
	data = data.toLowerCase();
	var coinc = data.match(/([??????????\-?\s\'\(\)\/\:\,\?\?])/gi);
		if (coinc!=null)
		{
			for(var r = 0; r < coinc.length; r++)
			{
			var expr = new RegExp("\\" + coinc[r]);
			data = data.replace(expr,o[coinc[r]]);
			}
		}
		return data;	
}
/*Elementos del men?*/
var menuArray = new Array();
    menuArray[0] = "Data Quality";
    menuArray[1] = "Deyde solutions";
    menuArray[2] = "About us";
    menuArray[3] = "Press";
	menuArray[4] = "More information";
    menuArray[5] = "Contact";
var menuArrayURL = new Array();
	menuArrayURL[0] = "benefits";
	menuArrayURL[1] = "";
	menuArrayURL[2] = "ourcompany";
	menuArrayURL[3] = "press";
	menuArrayURL[4] = "faqs";
	menuArrayURL[5] = "contact";

/*Funci?n para mostrar la cabecera de manera autom?tica*/ 
function showMenuCabecera()
{
	for(var i = 0; i < menuArray.length; i++)
	{
		if(seccion != menuArray[i])
		{
			if(menuArrayURL[i]!=""){
		document.write('<td class=menu_pos_'+ (i+1) +'_off><a href=/en/'+  dReplace( menuArray[i].replace(/ /gi,"-")) +'/ class="lnk" >'+ menuArray[i] +'</a></td>');
			}else{
			document.write('<td class=menu_pos_'+ (i+1) +'_off><a href=/en/'+  dReplace( menuArray[i].replace(/ /gi,"-")) +' class="lnk" >'+ menuArray[i] +'</a></td>');
			}

		}else{
		document.write('<td class=menu_pos_'+ (i+1) +'_on>'+ menuArray[i] +'</td>');
		}
				
	}
	if(seccion == "home")
	{		
	document.write('<td class="menu_pos_final"></td>');
	}else{
	document.write('<td class="menu_pos_final_interiores"><a href="/en/" style="cursor:hand;" alt="texto"><img src="/img/trans.gif" border="0" width="75" height="25" align="right"></div></a></td>');
       }
}

/*Para los men?s*/

var parametro = window.location.href;
var parametroS = parametro.split('?s=');

/*MEn? calidad de datos*/
var menuCd = new Array();
	menuCd[1] = "Benefits";
	menuCd[2] = "Facts";
	menuCd[3] = "Useful tips";

/*Men?s acerca de deyde*/
var menuAd = new Array();
	menuAd[1] = "About us";
	menuAd[2] = "Our company";	
	menuAd[3] = "Our staff";
	menuAd[4] = "Our guarantee";
	menuAd[5] = "Clients";
	menuAd[6] = "Our clients";
	menuAd[7] = "Their opinion";

/*Men? soluciones y productos*/
 var menuSp_one = new Array();
	 menuSp_one[1] = "Normalizaci?n de nombres";	 
	 menuSp_one[2] = "Codificaci?n de direcciones"; 	
	 menuSp_one[3] = "Deduplicaci?n de datos";	
	 menuSp_one[4] = "Captura asistida";	 

 var menuSp_two = new Array();
	 menuSp_two[1] = "Asignaci?n de secci?n"; 	
	 menuSp_two[2] = "Identificaci?n de Robinson?s";	
	 menuSp_two[3] = "Asignaci?n de coordenadas";	 
	 menuSp_two[4] = "Numeraci?n de tel?fonos";	 
     menuSp_two[5] = "Conversi?n a min?sculas";	

 var menuSp_three = new Array();
	 menuSp_three[1] = "Sistemas de calidad de datos";

 var menuSp_four = new Array();
	 menuSp_four[1] = "Batch process";	 
	 menuSp_four[2] = "Online normalization"; 	

/*Function To validate webservice*/
function validaWS()
{
if((document.fw.user.value.charAt(0)== " ")|| (document.fw.user.value == ""))
{
alert('Field user incorrect');
document.fw.user.focus();
}
else if((document.fw.password.value.charAt(0)== " ")|| (document.fw.password.value == ""))
{
alert('Field password incorrect');
document.fw.password.focus();
}
else{
document.fw.submit();
}
}
