



closetime = 20; 
// Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds

function Start(URL, WIDTH, HEIGHT) {
windowprops = "left=250,top=250,resizable=no,scrollbars=no,width=" + WIDTH + ",height=" + HEIGHT;
preview = window.open(URL, "preview", windowprops);
if(parseInt(navigator.appVersion) >= 4){preview.window.focus();}
if (closetime) setTimeout("preview.close()", closetime*1000);
}

function doPopup() {
url = "http://www.burgundydiscovery.com/popup/weekend.html";
width =350;  // width of window in pixels
height = 375; // height of window in pixels
delay = 0;    // time in seconds before popup opens
timer = setTimeout("Start(url, width, height)", delay*1000);

}

function targetopener(mylink){
if (! (window.focus && window.opener))return true;
window.opener.focus();
window.opener.parent.top.location.href=mylink.href;
window.close();
return false;
}


//onClick="return targetopener(this)"
