function OpenThinClient()
{
var rand = Math.round(Math.random()*100000);
var url = "https://deskshop.discovercard.com/thincard/thinclient.html";
var flags;

var agt=navigator.userAgent.toLowerCase();
var is_NS7 = (agt.indexOf("netscape/7")!=-1);
var is_aol = false;
var InternetExplorer = false;
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;

if (null != agt && -1 != agt.indexOf("aol"))
{
is_aol = true;
}

if ( -1 != navigator.appName.indexOf("Microsoft"))
{
  InternetExplorer = true;
}
var is_AOL = is_aol;


if (is_AOL)
{
flags = "width=481,height=250";
url = "https://deskshop.discovercard.com/thincard/thinclientAOL.html";
}
else
{
flags = "width=322,height=250";
}
if (InternetExplorer)
{
flags += ",resizable=no,scrollbars=no,status=yes";
}
else if (is_NS7)
{
flags += ",resizable=no,status=yes";
}
else if ( !is_NS7 && !InternetExplorer && !is_AOL ) 
{
flags += ",resizable=yes,status=yes";
}
window.open(url,"WebCardThinClient"+rand,flags);
}


