		function openGallery()
	{
		s = 'menubar=no,toolbar=no,status=no,width=470,height=430,screenX=0,screenY=0,left=0,top=0,resizable=yes,scrollbars=0,location=no'
		window.open('ItemDetailsGallery.aspx','link',s)
	}

	function openGallery2()
	{
		//s = 'menubar=no,toolbar=no,status=no,width=700,height=620,screenX=0,screenY=0,left=0,top=0,resizable=yes,scrollbars=0,location=no'
		//window.open('GalleryViewer.aspx','link',s)
		  url = 'GalleryViewer.aspx'
          // Fudge factors for window decoration space.
          w = 700;
          h = 700;
          wleft = (screen.width - w) / 2;
          wtop = (screen.height - h) / 2;
          // IE5 and other old browsers might allow a window that is
          // partially offscreen or wider than the screen. Fix that.
          // (Newer browsers fix this for us, but let's be thorough.)
          if (wleft < 0) {
            w = screen.width;
            wleft = 0;
          }
          if (wtop < 0) {
            h = screen.height;
            wtop = 0;
          }
          var win = window.open(url,
            name,
            'width=' + w + ', height=' + h + ', ' +
            'left=' + wleft + ', top=' + wtop + ', ' +
            'location=no, menubar=no, ' +
            'status=no, toolbar=no, scrollbars=no, resizable=no');
          // Just in case width and height are ignored
          win.resizeTo(w, h);
          // Just in case left and top are ignored
          win.moveTo(wleft, wtop);
          win.focus();
		
	}
	
	function openPackageGallery1()
	{
		s = 'menubar=no,toolbar=no,status=no,width=470,height=430,screenX=0,screenY=0,left=0,top=0,resizable=yes,scrollbars=0,location=no'
		window.open('ItemDetailsGallery.aspx?Item=1','link',s)
	}

	function openPackageGallery2()
	{
		s = 'menubar=no,toolbar=no,status=no,width=470,height=430,screenX=0,screenY=0,left=0,top=0,resizable=yes,scrollbars=0,location=no'
		window.open('ItemDetailsGallery.aspx?Item=2','link',s)
	}
	
	function openPackageGallery3()
	{
		s = 'menubar=no,toolbar=no,status=no,width=470,height=430,screenX=0,screenY=0,left=0,top=0,resizable=yes,scrollbars=0,location=no'
		window.open('ItemDetailsGallery.aspx?Item=3','link',s)
	}	
		
	function openSecurityCodeHelp()
	{
		s = 'menubar=no,toolbar=no,status=no,width=600,height=575,screenX=0,screenY=0,left=50,top=50,resizable=no,scrollbars=0,location=no'
		window.open('CardSecurityHelp.htm','link',s)
	}

    function openSecurityDepositHelp()
	{
		s = 'menubar=no,toolbar=no,status=no,width=360,height=400,screenX=0,screenY=0,left=300,top=250,resizable=no,scrollbars=0,location=no'
		window.open('SecurityDepositMoreInfo.htm','link',s)
	}

	function openCreditCheckHelp()
	{
		s = 'menubar=no,toolbar=no,status=no,width=500,height=400,screenX=0,screenY=0,left=50,top=50,resizable=no,scrollbars=0,location=no'
		window.open('CreditCheckHelp.htm','link',s)
	}
		
	function openGalleryID(productID)
	{
		s=s;
	}
	
	function openPressArticle(sID)
	{
		sPage = 'PressDisplay.aspx?ID=' + sID
		s = 'menubar=no,toolbar=no,status=no,width=750,height=600,screenX=0,screenY=0,left=50,top=50,resizable=no,scrollbars=1,location=no'
		window.open(sPage,'link',s)
	}	

	function openPDF(sName)
	{
		//document.write(window.location.protocol)  = http:
		//document.write(window.location.host)  = localhost
		//document.write(window.location.hostname) = localhost
		//document.write(window.location.pathname) = /Adorn/Press.aspx
		//sPage = 'http://www.adorn.com/brides/Press/' + sName
		if (window.location.hostname == 'localhost')
		{
			sPage = window.location.protocol + '//' + window.location.hostname + '/Adorncom/Press/' + sName		
		}
		else
		{
			sPage = window.location.protocol + '//' + window.location.hostname + '/Press/' + sName
		}
		//alert(sPage)
		s = 'menubar=no,toolbar=no,status=no,width=800,height=600,screenX=0,screenY=0,left=0,top=0,resizable=no,scrollbars=1,location=no'
		window.open(sPage,'link',s)
	}	
		
	function EventFilter()
	{
			window.location.href='EventFilter.aspx?Filter=0';
	}

	function openOurVideos(sID)
	{
		sPage = 'OurVideos.aspx?ID=' + sID
		s = 'menubar=no,toolbar=no,status=no,width=500,height=700,screenX=0,screenY=0,left=0,top=0,resizable=no,scrollbars=0,location=no'
		window.open(sPage,'link',s)
	}
		
	function setTitle(sString)
	{
		document.title = sString
	}
	
	function openEmailLink()
	{
		//s = 'menubar=no,toolbar=no,status=no,width=700,height=620,screenX=0,screenY=0,left=0,top=0,resizable=yes,scrollbars=0,location=no'
		//window.open('GalleryViewer.aspx','link',s)
		  url = 'EmailFriend.aspx'
          // Fudge factors for window decoration space.
          w = 750;
          h = 600;
          wleft = (screen.width - w) / 2;
          wtop = (screen.height - h) / 2;
          // IE5 and other old browsers might allow a window that is
          // partially offscreen or wider than the screen. Fix that.
          // (Newer browsers fix this for us, but let's be thorough.)
          if (wleft < 0) {
            w = screen.width;
            wleft = 0;
          }
          if (wtop < 0) {
            h = screen.height;
            wtop = 0;
          }
          var win = window.open(url,
            name,
            'width=' + w + ', height=' + h + ', ' +
            'left=' + wleft + ', top=' + wtop + ', ' +
            'location=no, menubar=no, ' +
            'status=no, toolbar=no, scrollbars=no, resizable=no');
          // Just in case width and height are ignored
          win.resizeTo(w, h);
          // Just in case left and top are ignored
          win.moveTo(wleft, wtop);
          win.focus();
		
	}
	
	function openSalesBrochure(sCode)
	{
		if (window.location.hostname == 'localhost')
		{
			sPage = window.location.protocol + '//' + window.location.hostname + '/Adorncom/Partners/Brochures/' + sCode		
		}
		else
		{
			sPage = window.location.protocol + '//' + window.location.hostname + '/Partners/Brochures/' + sCode
		}
		//alert(sPage)
		s = 'menubar=no,toolbar=no,status=no,width=800,height=600,screenX=0,screenY=0,left=0,top=0,resizable=no,scrollbars=1,location=no'
		window.open(sPage,'link',s)
	}		
	
// Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds

function Start(URL, closetime) 
{
          // Fudge factors for window decoration space.
          w = 400;
          h = 300;
          wleft = (screen.width - w) / 2;
          wtop = (screen.height - h) / 2;
          if (wleft < 0) {
            w = screen.width;
            wleft = 0;
          }
          if (wtop < 0) {
            h = screen.height;
            wtop = 0;
          }
          win = window.open(url,
            "win",
            'width=' + w + ', height=' + h + ', ' +
            'left=' + wleft + ', top=' + wtop + ', ' +
            'location=no, menubar=no, ' +
            'status=no, toolbar=no, scrollbars=no, resizable=no');
          // Just in case width and height are ignored
          win.resizeTo(w, h);
          // Just in case left and top are ignored
          win.moveTo(wleft, wtop);
          win.focus();
 
    if (closetime)
        setTimeout("win.close();", closetime*1000);
}

function doPopup() 
{
    url = "offerhelp.aspx";
    delay = 10;    // time in seconds before popup opens
    // 2nd param is the time that the popup will remain open before closing (set to 0 if you don't want it to close
    timer = setTimeout("Start(url, 30)", delay*1000);
}
	