<!--
function visitorLast(refName,refLang)
   {
	var vRefname = refName;
	//if(refLang == "Spanish")
	{
	 var ShowPreview=open('../Visitors/VisitorDetails.asp?qryRef='+ vRefname ,'7ReportsPage','left=0,top=0,width=422,height=570,menubar=no,toolbar=no,status=no,resizable=yes,scrollbars=no,location=no,left=1,top=1')
	}
	/*else
	{
	 var ShowPreview=open('VisitorDetails.asp?qryRef='+ vRefname ,'7ReportsPage','left=0,top=0,width=425,height=445,menubar=no,toolbar=no,status=no,resizable=yes,scrollbars=no,location=no,left=1,top=1')
	}*/
	if(!(typeof(ShowPreview) != "object"))
	{
	 ShowPreview.blur();
	 self.focus();	 
	}	
   }
  

window.name = "WTP";

if(typeof(ShowPreview) == "object" )
 {
  ShowPreview.blur();
 }
 
function DoSearch()
{
	
	if(frm1.search.value == "")
	{
		alert("Favor de proporcionar los criterios de la búsqueda.");
		
	}
	else
	{
		var vals = document.frm1.search.value;
		document.frm1.action = "Results.asp?keywords=" + vals.replace(" ","+") + "&RPP=" + 10;
		document.frm1.submit();
	}
}

function DoSearch_Powertool()
{
	
	if(frm1.search.value == "")
	{
		alert("Introduzca palabras para búsqueda");
		
	}
	else
	{
		var vals = document.frm1.search.value;
		document.frm1.action = "Results.asp?keywords=" + vals.replace(" ","+") + "&RPP=" + 10;
		document.frm1.submit();
	}
}
function LiveSupport(theURL,winName,features)
{
  window.open(theURL,winName,features);
 }
 
function showHelp(theURL,winName,features)
 {
  window.open(theURL,winName,features);
 }
 
function Rcertify()
{
popupWin = window.open('http://www.bbbonline.org/cks.asp?id=102021115242518821', 'Participant','location=yes,scrollbars=yes,width=450,height=300');
window.name = 'opener';
}

function Contact(Usr)
{
   var URL = "E-M_Contact-Us.asp?qryUser=" + Usr;
   window.open(URL,'Contact','left=0,top=0,width=480,height=400,menubar=no,toolbar=no,status=no,resizable=no,scrollbars=yes,location=no')
}

function powerline(refName,refLang)
{
	var vRefname = refName;
	if(refLang == "Spanish")
	{
	 var ShowPreview=open('SPL_NL.asp?qryRef='+ vRefname ,'SPowerLine','resizable=yes,width=425,height=435')
	}
	else
	{
	 var ShowPreview=open('PL_NL.asp?qryRef=' + vRefname ,'PowerLine','resizable=yes,width=425,height=445')
	}
}


window.name = "MainPage"

function searchIt()
{
	var vVal = document.frm1.search.value;
	var vValue = vVal.replace(" ","+"); 
	
	if (vVal != '')
	{
		document.frm1.action = "Results.asp?Keywords="+vValue;
		document.frm1.submit();
		return true;
	}
	else
	{
		alert('Enter keywords to search');
		document.frm1.search.focus();
		return false;
	}
	
}


function right(e)
{
  if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))
	{
		alert('¡Gracias por visitar Wtpowers.biz!');
		return false;
	}
  else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3 || event.keyCode == 93))
    {
		alert('¡Gracias por visitar Wtpowers.biz!');
		return false;
	}

  return true;
}
document.onmousedown=right;
document.onkeydown  =right;


if (document.layers)
{
	window.captureEvents(Event.MOUSEDOWN);
}
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		buttons_01_over = newImage("images/buttons_01-over.jpg");
		buttons_02_over = newImage("images/buttons_02-over.jpg");
		buttons_03_over = newImage("images/buttons_03-over.jpg");
		preloadFlag = true;
		window.focus();
	}
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function LiveSupport(theURL,winName,features)
{
  window.open(theURL,winName,features);
 }
 function gotoLang()
 {
	vLang = document.frm1.cboLang[document.frm1.cboLang.selectedIndex].value;	
	if (vLang == "")
	{
		alert("Please select the Language");		
	}
	else if (vLang == 'E')
	{
		vURL = '<%=LinkWtpDefault%>' + "content/visitors/main.asp";
		window.location.href=vURL;
	}
	else if (vLang == 'S')
	{
		vURL = '<%=LinkWtpDefault%>' + "content/visitors/main.asp";
		window.location.href=vURL;
	}
 }
 
 function fnLanding()
 {
	
 }

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_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_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 winBRopen(theURL, Name, popW, popH, scroll) { // V 1.0
var winleft = (screen.width - popW) / 2;
var winUp = (screen.height - popH) / 2;
//winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars='+scroll+',resizable'
winProp = 'width='+popW+',height='+popH+',left=0,top=0,scrollbars='+scroll+',resizable'
Win = window.open(theURL, Name, winProp)
if (parseInt(navigator.appVersion) >= 4) { Win.window.focus(); }

}



//-->