var axel = Math.random() + "";
var ord = axel * 1000000000000000000;

function openWindow(url, name) {
  var l = openWindow.arguments.length;
  var w = "";
  var h = "";
  var features = "";

  for (i=2; i<l; i++) {
    var param = openWindow.arguments[i];
    if ( (parseInt(param) == 0) ||
      (isNaN(parseInt(param))) ) {
      features += param + ',';
    } else {
      (w == "") ? w = "width=" + param + "," :
       h = "height=" + param;
    }
  }

  features += w + h;
  var code = "popupWin = window.open(url, name";
  if (l > 2) code += ", '" + features;
  code += "')";
  eval(code);
  }
  
   // drop down menu
function gotosite(site) {            
        if (site != "") {                    
                self.location=site; 
        }
}  

function aim() {openWindow('/curious/instant_messenger/pop.html','popop', 300, 200)}


// email this page
var fileName = document.URL;
escapedFileName = escape(fileName);
function email()
{
var popurl="/curious/email_friend/email.php?"+escapedFileName;
winpops=window.open(popurl,"","width=462,height=320,status");
}  