function checkPop(){  
if(win2) win2.close();
var win2=window.open('','','width=100,height=100');
var $b=false;
if(win2){
$b=true;
//win2.close();
}
return $b;
}

function canPopAlert(){
var $canPop1=checkPop();
if($canPop1==false){alert('Warning!  A pop-up blocker is presently active on your computer.  While you may continue to safely browse this site, certain advanced navigation functions will not be available.  To enhance your browsing experience and to ensure access to all areas of the site, ou may wish to adjust your browser settings to temporarily permit pop-ups for this site.  http://the-ultimate-romantic.com');}
// else{alert('Popups work!');}
return $canPop1;
}

function createLink($hopURL,$saleURL,$linkText,$Target){
if($Target==''){var $Target='_blank';}
if($canPop1==true){
$link='<a href=\"' + $saleURL + '\" target=\"' + $Target + '\" title=\"' + $linkText + '\" onMouseOver=\"window.status=\'Click for details ...\';return true\" onMouseOut=\"window.status=\'\';return true\" onClick=\"win2=window.open(\'' + $hopURL + '\',\'win2\',\'height=100,width=100\');win2.blur();window.focus();\">' + $linkText + '</a>';}
else{$link='<a href=\"' + $hopURL + '\" target=\"' + $Target + '\" title=\"' + $linkText + '\" onMouseOver=\"window.status=\'Click for details ...\';return true\" onMouseOut=\"window.status=\'\';return true\">' + $linkText + '</a>';
}
return $link;
}

function loadNewWin2($URL){
if(win2)win2.close();
win2=window.open($URL,'win2','height=100,width=100');
if (win2.blur) win2.blur();
if (window.focus) window.focus();
return win2;
}

function replaceLocationHref(){
$URL=location.href;
if (document.images){
location.replace($URL);
}
else{location.href=$URL;
}
}

function KillMe(StayAlive){
setTimeout("self.close()",StayAlive * 1000);
}


