function visitorLasts(refName,refLang)
   {
	var vRefname = refName;
	if(refLang == "Spanish")
	{
	 var ShowPreview=open('Scontent/VisitorDetails.asp?qryRef='+ vRefname ,'7ReportsPage','left=0,top=0,width=422,height=445,menubar=no,toolbar=no,status=no,resizable=yes,scrollbars=no,location=no,left=1,top=1')
	}
	else
	{
	 var ShowPreview=open('http://www.wtpowers.com/Content/visitors/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";

function visitorLast(refName,refLang)
   {
	var vRefname = refName;
	if(refLang == "Spanish")
	{
	 var ShowPreview=open('../../Scontent/VisitorDetails.asp?qryRef='+ vRefname ,'7ReportsPage','left=0,top=0,width=422,height=445,menubar=no,toolbar=no,status=no,resizable=yes,scrollbars=no,location=no,left=1,top=1')
	}
	else
	{
	 var ShowPreview=open('http://www.wtpowers.com/Content/visitors/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";

function DoSearchs()
{
	
	if(frm1.search.value == "")
	{
		alert("Please enter search criteria.");
		
	}
	else
	{
		var vals = document.frm1.search.value;
		document.frm1.action = "Results.asp?keywords=" + vals.replace(" ","+") + "&RPP=" + 10;
		document.frm1.submit();
	}
}

function DoSearch()
{
	
	if(frm1.search.value == "")
	{
		alert("Please enter search criteria.");
		
	}
	else
	{
		var vals = document.frm1.search.value;
		document.frm1.action = "Content/visitors/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('Content/visitors/SPL_NL.asp?qryRef='+ vRefname ,'SPowerLine','resizable=yes,width=425,height=435')
	}
	else
	{
	 var ShowPreview=open('Content/visitors/PL_NL.asp?qryRef=' + vRefname ,'PowerLine','resizable=yes,width=425,height=445')
	}
}


window.name = "MainPage"

function powerlines(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 = "Content/visitors/Search/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('Thank You For Visiting WTPowers.com !');
		return false;
	}
  else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3 || event.keyCode == 93))
    {
		alert('Thank you for Visiting WTPowers.com !');
		return false;
	}

  return true;
}
document.onmousedown=right;
document.onkeydown  =right;


if (document.layers)
{
	window.captureEvents(Event.MOUSEDOWN);
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

<!-- winBRopen BEGIN
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'
alert("afdsf");
Win = window.open(theURL, Name, winProp)
if (parseInt(navigator.appVersion) >= 4) { Win.window.focus(); }

}
// winBRopen END -->

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 = "http://www.wtpowers.com/content/visitors/main.asp";
		window.location.href=vURL;
	}
	else if (vLang == 'S')
	{
		vURL = "http://www.wtpowers.com/Scontent/main.asp";
		window.location.href=vURL;
	}
 }
 
 function fnLanding()
 {
	
 }

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];
		}
	}
}
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];}
}

if(typeof(ShowPreview) == "object" )
 {
  ShowPreview.blur();
 }
 
 var preloadFlag = false;
function newpreloadImages() {
	if (document.images) {
		buttons_01_over = newImage("http://www.wtpowers.com/content/Images/buttons_01-over.jpg");
		buttons_02_over = newImage("http://www.wtpowers.com/content/Images/buttons_02-over.jpg");
		buttons_03_over = newImage("http://www.wtpowers.com/content/Images/buttons_03-over.jpg");
		preloadFlag = true;		
	}
}

function playvideo()
	{
		document.write("<table width='320' height='300' border='0' cellspacing='0' cellpadding='1' style='display:none;position:absolute;top:10px;left:10px;empty-cells:hide' id='pwID70142078FloatingWindowTable'>");document.write("<tr><td style='background: FFFFFF'>");document.write("<table width='100%' height='100%' border='0' cellspacing='0' cellpadding='0'>");document.write("<tr height='1'><td>");document.write("<table width='100%' border='0' cellspacing='1' cellpadding='0' style='background: FFFFFF; color: 000000; cursor: default'><tr style='font-family: Verdana, sans-serif; font-size: 11pt; font-weight: bold'><td>Important  Anouncment");document.write("<td style='width: 20px; cursor: pointer;' onclick='javascript:pwID70142078MinimizeFloatingWindow();'><IMG src='minimize.gif'>");document.write("<td style='width: 20px; cursor: pointer;' onclick='javascript:pwID70142078CloseFloatingWindow();'><IMG src='close.gif'>");document.write("</table>");document.write("<tr><td>");document.write("<table width='100%' height='100%' id='pwID70142078FloatingWindowTableMainContent' border='0' cellpadding='0' cellspacing='0' bgcolor='FFFFFF'>");document.write("<tr>");document.write("<td>");document.write("<html>\r\n<head>\r\n<title>Untitled Document</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\r\n</head>\r\n\r\n<body>\r\n<div align=\"center\">\r\n  <table border=\"0\" cellpadding=\"15\" cellspacing=\"1\" bgcolor=\"#000000\">\r\n    <tr>\r\n      <td bgcolor=\"#FFFFFF\">http://audio.wtpowers.com/video/</td>\r\n    </tr>\r\n  </table>\r\n</div>\r\n</body>\r\n</html>");document.write("<tr style='height: 10px'><td style='text-align: center'><INPUT type='button' value='Close' style='cursor: pointer' onclick='javascript:pwID70142078CloseFloatingWindow();' id='button'1 name='button'1>");document.write("</table></table></table>"); if ( document.getElementById ) pwID70142078FloatingElement = document.getElementById ( "pwID70142078FloatingWindowTable" ); else pwID70142078FloatingElement = document.all ["pwID70142078FloatingWindowTable"]; function pwID70142078MinimizeFloatingWindow ( ) {   if ( document.getElementById )     content = document.getElementById ( "pwID70142078FloatingWindowTableMainContent" );   else     content = document.all ["pwID70142078FloatingWindowTableMainContent"];   if ( content.style.display == "none" )     {       content.style.display = "";       pwID70142078FloatingElement.style.height = "170px";     }   else     {       content.style.display = "none";       pwID70142078FloatingElement.style.height = "20px";     } } function pwID70142078CloseFloatingWindow ( ) {   pwID70142078FloatingElement.style.display = "none"; } var pwID70142078targetx = 10, pwID70142078targety = 10; function pwID70142078ReturnAdjustedCoordinateX ( ) {   return ( ( window.pageXOffset ) ? window.pageXOffset : document.body.scrollLeft ) + pwID70142078targetx; } function pwID70142078ReturnAdjustedCoordinateY ( ) {   return ( ( window.pageYOffset ) ? window.pageYOffset : document.body.scrollTop ) + pwID70142078targety; } function pwID70142078KeepFloatingWindowPosition ( ) {   pwID70142078FloatingElement.style.top = pwID70142078ReturnAdjustedCoordinateY ( );   pwID70142078FloatingElement.style.left = pwID70142078ReturnAdjustedCoordinateX ( );   setTimeout ( "pwID70142078KeepFloatingWindowPosition ( );", 1000 ); } function pwID70142078FloatingSlideIn ( ) {   if ( pwID70142078targetx != 35 || pwID70142078targety != 10 )     {       if ( pwID70142078targetx != 35 )         if ( Math.abs ( pwID70142078targetx - 35 ) <= 30.000000 )           pwID70142078targetx = 35;         else           if ( pwID70142078targetx < 35 )             pwID70142078targetx += 30.000000;           else             pwID70142078targetx -= 30.000000;       if ( pwID70142078targety != 10 )         if ( Math.abs ( pwID70142078targety - 10 ) <= 30.000000 )           pwID70142078targety = 10;         else           if ( pwID70142078targety < 10 )             pwID70142078targety += 30.000000;           else             pwID70142078targety -= 30.000000;       pwID70142078FloatingElement.style.top  = pwID70142078ReturnAdjustedCoordinateY ( );       pwID70142078FloatingElement.style.left = pwID70142078ReturnAdjustedCoordinateX ( );       setTimeout ( "pwID70142078FloatingSlideIn();", 20 );     }   else     pwID70142078KeepFloatingWindowPosition ( ); } function pwID70142078StartUp ( ) {   pwID70142078targetx = 35;   pwID70142078targety = 10;   switch ( 1 )     {       case 3: pwID70142078targetx = -320;  break;       case 4: pwID70142078targetx = ( ( window.innerWidth ) ? window.innerWidth : document.body.clientWidth );  break;       case 1: pwID70142078targety = -300;  break;       case 2: pwID70142078targety = ( ( window.innerHeight ) ? window.innerHeight : document.body.clientHeight);  break;     }   pwID70142078FloatingElement.style.top  = pwID70142078ReturnAdjustedCoordinateY ( );   pwID70142078FloatingElement.style.left = pwID70142078ReturnAdjustedCoordinateX ( );   pwID70142078FloatingElement.style.display = "";   pwID70142078FloatingSlideIn ( ); } function FndCk ( sCookieName ) {   var iNameLen = sCookieName.length;   var sCookieData = document.cookie;   var iCLen = sCookieData.length;   var i, j;   var CEnd;   i = 0;   while ( i < iCLen )     {       j = i + iNameLen;       if ( sCookieData.substring ( i, j ) == sCookieName )         {           iCEnd = sCookieData.indexOf ( ";", j );           if ( iCEnd == -1 )             iCEnd = sCookieData.length;           return unescape ( sCookieData.substring ( j + 1, iCEnd ) );         }       i++;     }   return null; } if ( FndCk ( "pwID70142078" ) == null )   {     var exp = new Date ( );     var iExpT = exp.getTime ( ) + 60000;     exp.setTime ( iExpT );     document.cookie = "pwID70142078=; expires=" + exp.toGMTString();     setTimeout ( "pwID70142078StartUp ( );", 500 );   } var pwID70142078oldx, pwID70142078oldy; function pwID70142078FloatingWindowDragMove ( e ) {   newx = ( document.all ) ? event.clientX : e.clientX;   newy = ( document.all ) ? event.clientY : e.clientY;   pwID70142078targetx += newx - pwID70142078oldx;   pwID70142078targety += newy - pwID70142078oldy;   pwID70142078oldx = newx;   pwID70142078oldy = newy;   pwID70142078FloatingElement.style.top  = pwID70142078ReturnAdjustedCoordinateY ( );   pwID70142078FloatingElement.style.left = pwID70142078ReturnAdjustedCoordinateX ( ); } function pwID70142078DoNothing ( ) { } function pwID70142078EndFloatingWindowDrag ( ) {   document.onmousemove = pwID70142078DoNothing;   document.onmouseup   = pwID70142078DoNothing; } function pwID70142078StartFloatingWindowDrag ( e ) {   pwID70142078oldx = ( document.all ) ? event.clientX : e.clientX;   pwID70142078oldy = ( document.all ) ? event.clientY : e.clientY;   document.onmousemove = pwID70142078FloatingWindowDragMove;   document.onmouseup   = pwID70142078EndFloatingWindowDrag; } pwID70142078FloatingElement.onmousedown = pwID70142078StartFloatingWindowDrag;
	}
