function vote(element) {
var points = document.form1.points_frm;
var url = "vote.mv?jokeid=" + element + "&points_frm=" + document.form1.points_frm[points.selectedIndex].value;
var str = "height=100" + ",innerHeight=100";
  str += ",width=200" + ",innerWidth=200";
  str += ",location=0" + ",resizable=0" + ",menubar=0";
  if (window.screen) {
    var ah = screen.availHeight - 30;
    var aw = screen.availWidth - 10;

    var xc = (aw - 100) / 2;
    var yc = ((ah - 100) / 2) + 65;

    str += ",left=" + xc + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
  }

    window.open(url , "vote" , str);

}
function sendjoke(parms){
var url = "sendjoke.mv?" + parms;
var str = "height=500" + ",innerHeight=500";
  str += ",width=480" + ",innerWidth=480";
  str += ",location=0" + ",resizable=0" + ",menubar=0";
  str += ",scrollbars=0";
  if (window.screen) {
    var ah = screen.availHeight - 30;
    var aw = screen.availWidth - 10;

    var xc = (aw - 480) / 2;
    var yc = ((ah - 440) / 2) + 65;

    str += ",left=" + xc + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
  }

    window.open(url , "sendjoke" , str);

}
function outofframes(){

if (window != top) top.location.href = location.href;

}
