<!--
function callSearch(id)
{
	
	divDisplay = document.getElementById(id);
	//alert("hh: "+html);
	var html = '<table border="0" cellpadding="0" width="100%%" style="height:92px;background-color:#b4b4b4;background:#b4b4b4"><tr><td align="right" valign="middle" style="width:150px;"><img src="/images/ajax-loader.gif" width="24" height="24" alt="" /></td><td style="color:black;font-size:.8em;text-align:left;width:200px;height:100%">&nbsp;Loading</td></tr></table>';
	formId = document.getElementById("formulari");
	formId.submit();
	divDisplay.innerHTML = "";
	divDisplay.innerHTML = html;
}
/*<p style="width:100%;height:92px;background-color:#b4b4b4;background:#b4b4b4"><ul><li style="width:150px;height:100%;"><img src="/images/ajax-loader.gif" width="24" height="24" alt="" /></li><li style="color:black;font-size:.8em;text-align:left;width:200px;height:100%"><%'=LANG_loading%></li></ul></p>*/

function fix_external_links() {
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i = 0; i < anchors.length; i++) {
		var anchor = anchors[i];
		if (anchor.getAttribute("rel") && anchor.getAttribute("rel") == "external") {
			anchor.target = "_blank";
		}
		if (anchor.getAttribute("rel") && anchor.getAttribute("rel") == "special") {
			anchor.params = "lightwindow_type=external,lightwindow_width=968,lightwindow_height=500";
			/*params="lightwindow_type=external,lightwindow_width=968,lightwindow_height=500"*/
		}
	}
}


function GetRealOffset(id,offset) 
{
	var elem = document.getElementById(id);
	var leftOffset = elem.offsetLeft;
	var topOffset = elem.offsetTop;
	var parent = elem.offsetParent;
	while(parent != document.body) 
	{
		leftOffset += parent.offsetLeft;
		topOffset += parent.offsetTop;
		parent = parent.offsetParent;
	}
	var Offsets = {top: topOffset,left: leftOffset};
	var val = (offset=='left')? Offsets.left:Offsets.top;
	
	return val
}

var taim = 0;
function switchMenu(menu)
{
	relocateAspasiosMenu();
	taim = 0;var vis = document.getElementById("submenu");
	if(menu){vis.innerHTML = getAspasiosSubMenu(menu);vis.style.visibility = "visible";}
	else 
		{
			
				vis.style.visibility = "hidden";
			}
}
function elMouseSobreElMenu(e){if (taim>1) clearTimeout(taim);}
function elMouseForaDelMenu(e){taim = setTimeout(switchMenu,500);}

function loadAspasiosMenu()
{
	var target = document.getElementById("submenu");
	relocateAspasiosMenu();
	if (window.addEventListener)
	{
		target.addEventListener("mousemove",elMouseSobreElMenu,false);
		target.parentNode.firstChild.addEventListener("mousemove",elMouseSobreElMenu,false);
		target.addEventListener("mouseout",elMouseForaDelMenu,false);
		document.getElementById("linea_navegacion").addEventListener("mouseover",elMouseForaDelMenu,false);
		document.getElementById("logo_2").addEventListener("mouseover",elMouseForaDelMenu,false);
		document.getElementById("idiomas").addEventListener("mouseover",elMouseForaDelMenu,false);
		document.getElementById("logo_2").addEventListener("mousedown",goHome,false);
	}
	else if (window.attachEvent)
	{
		target.attachEvent("onmousemove",elMouseSobreElMenu);
		target.parentNode.firstChild.attachEvent("onmousemove",elMouseSobreElMenu);
		target.attachEvent("onmouseout",elMouseForaDelMenu);
		document.getElementById("linea_navegacion").attachEvent("onmouseover",elMouseForaDelMenu);
		document.getElementById("logo_2").attachEvent("onmouseover",elMouseForaDelMenu);
		document.getElementById("logo_2").attachEvent("onmousedown",goHome);
		document.getElementById("idiomas").attachEvent("onmouseover",elMouseForaDelMenu);
	}
	for (var i in document.getElementsByTagName('a')) document.getElementsByTagName('a')[i].onfocus = document.getElementsByTagName('a')[i].blur;
}
function relocateAspasiosMenu()
{
	var target = document.getElementById("submenu");
	var nv = navigator.appVersion;
	target.style.left =  GetRealOffset(target.parentNode.id,'left')+((window.attachEvent)? target.offsetWidth:(target.offsetWidth+589))+"px";
	//target.style.top =  GetRealOffset(target.parentNode.id,'top')+((window.attachEvent)? target.offsetHeight:(target.offsetHeight))+"px";
	if (nv.indexOf(" 8.")>0)
	{
			target.style.left =  GetRealOffset(target.parentNode.id,'left')+(target.offsetWidth+589)
	}

}

/*if (window.addEventListener)
{
	window.addEventListener("load", loadAspasiosMenu, false);
	window.addEventListener("resize", relocateAspasiosMenu, false);
}
else if (window.attachEvent)
{
	
	window.attachEvent("onload", loadAspasiosMenu);
	window.attachEvent("onresize", relocateAspasiosMenu);
}
*/

	var win = null;
	function openWindow(mypage,myname,w,h,scroll)
	{
		
		if (document.all)
		{
			var ibx = document.body.offsetWidth;
        	var iby = document.body.offsetHeight;
			LeftPosition = (ibx) ? (ibx-w)/2 : 0;
			TopPosition = (iby) ? (iby-h)/2 : 0;
			
		}
		else
		{
			LeftPosition = (window.screen.width) ? (window.screen.width-w)/2 : 0;
			TopPosition = (window.screen.height) ? (window.screen.height-h)/2 : 0;
			
		}
		
		settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=no';
		
		win = window.open(mypage,myname,settings);
		win.focus();
	}
	function guardarDatosUsuario()
	{
		if (formulario.firstName.value=='')
		{
				alert("<%=LANG_popup%>");
				formulario.firstName.focus();
				return false;		
		}
		if (formulario.lastName.value==''){
				alert("Fields marked with * are required");
				formulario.lastName.focus();	
				return false;	
		}
		if (formulario.documentNumber.value==''){
				alert("Fields marked with * are required");
				formulario.documentNumber.focus();		
				return false;
		}
				
		if (formulario.eMail.value==''){
				alert("Fields marked with * are required");
				formulario.eMail.focus();		
				return false;
		}
		if (formulario.mobilePhone.value==''){
				alert("Fields marked with * are required");
				formulario.mobilePhone.focus();	
				return false;	
		}
		if (formulario.address.value==''){
				alert("Fields marked with * are required");
				formulario.address.focus();	
				return false;	
		}
		if (formulario.city.value==''){
				alert("Fields marked with * are required");
				formulario.city.focus();
				return false;		
		}			
		if (formulario.country.value==''){
				alert("Fields marked with * are required");
				formulario.country.focus();	
				return false;	
		}	
		if (formulario.pwd.value==''){
				alert("Fields marked with * are required");
				formulario.pwd.focus();		
				return false;
		}	
		if (formulario.pwd2.value==''){
				alert("Fields marked with * are required");
				formulario.pwd2.focus();		
				return false;
		}	
		if (formulario.pwd.value!=formulario.pwd2.value){
			alert("Campo distinto");
				formulario.pwd2.focus();		
				return false;
		}
		if (formulario.eMailCompany.value!=formulario.eMailCompany2.value){
			alert("El password introducido no es igual");
				formulario.eMailCompany2.focus();		
				return false;
		}
		formulario.submit();
	}
	function ShowHide(id) {
    
}
	
	
	
	function MM_preloadImages() 
	{ 
  	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}

	function MM_swapImgRestore() 
	{ //v3.0
  	var i,x,a=document.MM_sr; for(i=0;a && i<a.length && (x=a[i]) && x.oSrc;i++) x.src=x.oSrc;
	}

	function MM_findObj(n, d) 
	{ //v4.01
  	var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  	if(!x && d.getElementById) x=d.getElementById(n); return x;
	}

	function MM_swapImage() 
	{ //v3.0
  	var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   	if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}

	function link (lista){
		document.location.href=lista;
	}
	var activex = ((navigator.userAgent.indexOf('Win')  != -1) && (navigator.userAgent.indexOf('MSIE') != -1) && (parseInt(navigator.appVersion) >= 4 ));
var CantDetect = ((navigator.userAgent.indexOf('Safari')  != -1) || (navigator.userAgent.indexOf('Opera')  != -1));

function oopsPopup() {
    if((navigator.language && navigator.language.indexOf("ja") != -1) || (navigator.systemLanguage && navigator.systemLanguage.indexOf("ja") != -1) || (navigator.userLanguage && navigator.userLanguage.indexOf("ja") != -1)) {
        var URLtoOpen = "http://download.skype.com/share/skypebuttons/oops/oops_ja.html";
    } else {
        var URLtoOpen = "http://download.skype.com/share/skypebuttons/oops/oops.html";
    }
	var windowName = "oops";
	var popW = 540, popH = 305;
	var scrollB = 'no';
	w = screen.availWidth;
	h = screen.availHeight;
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	oopswindow = window.open(URLtoOpen, windowName,'width=' + popW + ',height=' + popH + ',scrollbars=' + scrollB + ',screenx=' +leftPos +',screeny=' +topPos +',top=' +topPos +',left=' +leftPos);
	return false;
}

if(typeof(detected) == "undefined" && activex) {
    document.write(
        ['<script language="VBscript">',
        'Function isSkypeInstalled()',
        'on error resume next',
        'Set oSkype = CreateObject("Skype.Detection")',
        'isSkypeInstalled = IsObject(oSkype)',
        'Set oSkype = nothing',
        'End Function',
        '</script>'].join("\n")
    );
}

function skypeCheck() {
    if(CantDetect) {
        return true;
    } else if(!activex) {
        var skypeMime = navigator.mimeTypes["application/x-skype"];
        detected = true;
        if(typeof(skypeMime) == "object") {
            return true;
        } else {
            return oopsPopup();
        }
    } else {
        if(isSkypeInstalled()) {
            detected = true;
            return true;
        }
    }
    
    detected = true;
    return oopsPopup();
}

function loadDetection() {
    if(document.getElementById && document.getElementsByTagName) {
        if (window.addEventListener) window.addEventListener('load', addDetection, false);
        else if (window.attachEvent) window.attachEvent('onload', addDetection);
    }
}

function addDetection() {
    var pageLinks = document.getElementsByTagName("a");
    for (var i=0; i < pageLinks.length; i++) {
        if(pageLinks[i].childNodes[0] && pageLinks[i].childNodes[0].src) {
            if((pageLinks[i].childNodes[0].src.indexOf('download.skype.com\/share\/skypebuttons') != -1 || pageLinks[i].childNodes[0].src.indexOf('mystatus.skype.com') != -1) && (typeof(pageLinks[i].onclick) == "undefined" || pageLinks[i].onclick == null)) {
                pageLinks[i].onclick = function sChk() { return skypeCheck(); }
            }
        }
    }
}

loadDetection();


-->