﻿// JScript File
function popUpLargeImage(picArray)
			{
				theURL="http://www.durangoboot.com/Products/PopUpImage.aspx?picArray="+picArray; 
				winName="ExclusiveListingsImages";
				features="width=350,height=320";
				window.open(theURL,winName,features);
			}
function imageWindow(outsole)
			{
				theURL="http://www.durangoboot.com/Products/PopUpImage.aspx?outsole="+outsole;  
				winName="ExclusiveListingsImages";
				features="width=200,height=400";
				window.open(theURL,winName,features);
			}

function popUp(URL, w1, h1) 
			{
				id = "ejwindow";
				
				if (parent.window.frames[id] != null && ! parent.window.frames[id].closed) {	

					eval(id + ".close()");
				}
				
				eval(id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=" + w1 + ",height=" + h1 + "');");	
				eval(id + ".focus()");	
			}
var query='';
function wait(delay)
{
    string="pauseforalert("+delay+");";
    setTimeout(string,delay);
}

function pauseforalert(delay)
{
    var newwindow = '';
    theURL= query
    winName="RockyBoots"
    features="scrollbars=yes,status=1,toolbar=1,menubar=1,resizable=1,location=1"

    newwindow = window.open(theURL,winName,features);
    if (window.focus) 
    {
      newwindow.focus()
    }
}

function openBuyNowLink(querystring)
{
    //var theURL="http://localhost:2789/Durango/products/intermediate.aspx";
    var theURL="/products/intermediate.aspx";
    query = querystring;
    winName="RockyBoots"
    features="scrollbars=yes,status=1,toolbar=1,menubar=1,resizable=1,location=1"

     newwindow = window.open(theURL,winName,features);
      if (window.focus) 
      {
        newwindow.focus()
      }
      wait(4000);
      return false;
}
