function showPopup(url) { 
newwindow=window.open(url,'name','height=800,width=600,top=100,left=100,resizable,scrollbars'); 
if (window.focus) {
//	mywindow.opener = self;
	newwindow.focus();

}
} 

function showPopupBM(url) { 
newwindow=window.open(url,'name','height=500,width=646,top=200,left=300,resizable,scrollbars'); 
if (window.focus) {newwindow.focus()} 
} 

function GetDay(nDay)
{
        var Days = new Array("Sunday","Monday","Tuesday","Wednesday",
                             "Thursday","Friday","Saturday");
        return Days[nDay]
}

function GetMonth(nMonth)
{
        var Months = new Array("January","February","March","April","May","June",
                               "July","August","September","October","November","December");
        return Months[nMonth]
}

function DateString()
{
        var Today = new Date();
        var suffix = "th";
        switch (Today.getDate())
        {
                case 1:
                case 21:
                case 31:
                        suffix = "st"; break;
                case 2:
                case 22:
                        suffix = "nd"; break;
                case 3:
                case 23:
                        suffix = "rd"; break;
        };

        var strDate = GetDay(Today.getDay()) + " " + Today.getDate();
		var strYear = Today.getYear() + 1900;
        strDate += suffix + " " + GetMonth(Today.getMonth()) + ", " + strYear;
        return strDate
}
<!--
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}


//-->

//This is the function that adds products to shopping cart or displays shopping cart.
function aff_redirect(form_name){
		var form=document.getElementById(form_name);

		form.submit();
}

function mom_redirect(form_name){
		var form=document.getElementById(form_name);
		form.action = "http://www.google.com";

		form.submit();
}



function executeform(form_name){
		var form=document.getElementById(form_name);
		form.submit();
}

function downlaod_upgrade()

{

alert("Valid only if you have Bridge Baron 19 / 20 / 21! Steps to upgrade \n1. Click Download to try and install BB 22 trial version. \n 2. Start BB22 and click Purchase. Answer 'NO' to the question about the serial number. \n 3. You will be sent to an order page where BB22 is priced at $32.45.\n 4. Once you complete the order your BB 22 trial will automatically convert to the full version!");

}
