<!--
function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'block':(v=='hide')?'none':v; }
    obj.display=v; }
}
function MM_preloadImages() { //v3.0
  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];}
}
//window.onload="MM_preloadImages('images/temp/b_l1_2.gif','images/temp/b_l2_2.gif','images/temp/b_l3_2.gif','images/temp/b_l4_2.gif','images/temp/b_go2.jpg','images/temp/b1_2.gif','images/temp/b2_2.gif','images/temp/b3_2.gif','images/temp/b4_2.gif','images/temp/b5_2.gif','images/temp/b6_2.gif','images/temp/default_1_05_1.gif','images/temp/default_1_06_1.gif','images/temp/default_1_07_1.gif','images/temp/default_1_08_1.gif','images/temp/default_1_09_1.gif','images/temp/default_1_10_1.gif','images/temp/default_1_11_1.gif','images/home/b_s2.gif','images/home/b_s_p2.gif','images/home/b_tab_01_2.gif','images/home/b_tab_02_2.gif','images/home/b_tab_03_2.gif','images/home/b_tab_04_2.gif','images/home/b_tab_05_2.gif','images/home/b_go2.gif')";
function fReset(o,p) {
if (o.value==p) { o.value='';}
}

function fResetPwd(o,p) {
if (o.innerHTML==p) { o.innerHTML='';}
}

cW=null;
function MM_openBrWindow(theURL,winName,features) { //v2.0
  if (null!=cW) cW.close();
  cW = window.open(theURL,winName,features);
}

function showMask(objTxt) {
val = objTxt.value;
var mask='';
for (var i=0;i<val.length;i++){ 
	mask=mask + '*';
}
document.getElementById('showMaskPwd').innerHTML = mask;
}

function addFavorites(idCliente,idRelacionado,Tabela){
	xmlhttp=null;
	if (window.XMLHttpRequest){// code for IE7, Firefox, Mozilla, etc.
  	xmlhttp=new XMLHttpRequest();
  }else if (window.ActiveXObject){// code for IE5, IE6
  	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
	if (xmlhttp!=null){
    //xmlhttp.onreadystatechange=onResponse;
    xmlhttp.open("GET","addFavorites.asp?rand="+Math.floor(Math.random()*1000000)+"&idCliente="+idCliente+"&idRelacionado="+idRelacionado+"&Tabela="+Tabela,false);
		//xmlhttp.setRequestHeader('User-Agent','XMLHTTP/1.0');
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded');
		xmlhttp.setRequestHeader("Cache-Control","no-cache") 
    xmlhttp.send();
		if(xmlhttp.status==200){
    	alert(xmlhttp.responseText);
		}
  }
}

//-->