function daughter(myURL)
{
var msg = "You are about to access an external web site not controlled" +
" or managed by Citicorp Diners Club, Inc.  Content, services" +
" and functionalities presented on the external sites are" +
" neither endorsed or guaranteed by it. By clicking 'OK'," +
" you agree to hold Citicorp Diners Club Inc. harmless from" +
" any liabilities or claims arising from your access to the" +
" external site.";
if (confirm (msg))
{
//myURL = myURL.replace(/\?/g,"%3f");
//myURL = myURL.replace(/\=/g,"%3d");
//myURL = myURL.replace(/\s/g,"%20");
var pop = window.open(myURL, 'daughter', 'width=640,height=480,resizable=yes,scrollbars=yes,location=yes,menubar=yes,status=yes,toolbar=yes,directories=yes');
pop.focus();
}
}
<!-- -->
function daughterDiners(myURL)
{
var msg = "You are being directed to a local country website" +
" managed by the Diners Club licensee in that country who is" +
" responsible for the design and content.";
if (confirm (msg))
{
//myURL = myURL.replace(/\?/g,"%3f");
//myURL = myURL.replace(/\=/g,"%3d");
//myURL = myURL.replace(/\s/g,"%20");
var pop = window.open(myURL, 'daughter', 'width=640,height=480,resizable=yes,scrollbars=yes,location=yes,menubar=yes,status=yes,toolbar=yes,directories=yes');
pop.focus();
}
}