<!-- Begin
function CaricaFoto(img){
  foto1= new Image();
  foto1.src=(img);
  Controlla(img);
}
function Controlla(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    funzione="Controlla('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}
function viewFoto(img){
  largh=foto1.width+20;
  altez=foto1.height+20;
  stringa="width="+largh+",height="+altez;
  finestra=window.open(img,"",stringa);
}
//  End -->

<!-- Begin
function showRemote() {
self.name = "main"; // names current window as "main"

rightPos = 0
if (screen) { 
leftPos = 0

  }

var windowprops = "toolbar=0,location=0,directories=0,status=0," +
"menubar=0,scrollbars=0,resizable=0,width=300,height=390,left=+leftPos+,top=0";

OpenWindow = window.open("https://www.poolsupplies.com/remote-control.html", "remote", windowprops); // opens remote control
}
//  End -->

<!-- Search Type Options Begin
function convertSpaces(frm) {
if(document.search.SearchType[0].checked==true)
{
var str=frm.keywords.value
var out = "\"", flag = 0;
for (i = 0; i < str.length; i++) {
  if (str.charAt(i) != "\"") {
	  out += str.charAt(i);
  }
}
out += "\""
frm.keywords.value=out;
return true;
}

if(document.search.SearchType[1].checked==true)
{
var str=frm.keywords.value;
var out = "", flag = 0;
for (i = 0; i < str.length; i++) {
  if (str.charAt(i) != "\"") {
    out += str.charAt(i);
    flag = 0;
  }
else {
  if(flag == 0) {
    out += "";
    flag = 1;
  }
}
}
frm.keywords.value=out;
return true;
}

}

//  Search Type Options End -->

<!-- 
function Rcertify() 
{
popupWin = window.open('http://www.bbbonline.org/cks.asp?id=10302121112529760', 'Participant','location=yes,scrollbars=yes,width=450,height=300'); 
window.name = 'opener';
} 
// -->
//  Search Type Options End -->

<!--Standard Open Pop-Up Script Begin

function openPopUp(a,b,c,d) {

var a;
var b;
var c;
var d;

window.open(a,b,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+c+',height='+d);

}

//  Standard Open Pop-Up Script End -->

<!--View Larger Image Function Begin

function openLinerDetails(a,b,c,d) {

var a;
var b;
var c;
var d;

window.open(a,b,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+c+',height='+d);

}

//  View Larger Image Function End -->

<!--Load Page in Opener Window Begin

function returntoOpener(a) {

var a;
window.opener.location.href=a;
window.blur();

}

//  Load Page in Opener Window End -->

<!-- Popup for Liner images
function linerPop(variable)
{
window.open("/images/Liners/linerPopUp.html?"+variable, "Subpage"+variable, "width=180,height=400,top=120,left=400");
}
// end liner image pop up -->

function windowPop(page,width,height)
{
  var url = "http://www.poolsupplies.com/" + page;
  window.open(url, 'Subpage1', 'scrollbars=1, width='+width+', height='+height);
}