function platformDetect()
{
  if(navigator.appVersion.indexOf("Win") != -1)
  {
    alert("Windows");
  }
  else if(navigator.appVersion.indexOf("Mac") != -1)
  {
    alert("Macintosh");
  }
  else alert("Other");
}
function popUp(URL, name, x, y) {
  msgWindow = window.open(URL, name, "toolbar=0,scrollbars=1,location=0,status=no, statusbar=no, menubar=0,resizable=1,width=" + x + ",height=" + y);
  <!-- msgWindow.focus(); -->
  <!-- return msgWindow; -->
}

function openNewWindow(URLtoOpen, windowName, windowFeatures) {
	newWindow=window.open(URLtoOpen, windowName, windowFeatures); 
}

function popup2(url){
        // only change from above is with the url
        var myURL = url, popupName = 'mySite', popupWidth = 500, popupHeight = 570, mypopup;
        var popupX = (screen.availWidth)? ((screen.availWidth - popupWidth) / 2): 20;
        var popupY = (screen.availHeight)? ((screen.availHeight - popupHeight) / 3):20;
        var details = 'toolbar=0,location=0,directories=0,status=no, statusbar=no,menubar=0,scrollbars=0,resizable=1,width='+popupWidth+',height='+popupHeight+',top='+popupY+',left='+popupX;
        mypopup = window.open(myURL,popupName,details);
        mypopup.focus(); 
}

function closePopUp() {
	try {
		if(w && !w.closed) {
			w.close();
		}
	}
	catch(e){
		// Do Nothing!!
	}
	finally {
		window.location = "nav.asp?ref=yes";
	}
}