function confirmLink(theLink, theText)
{
    var is_confirmed = confirm('Вы действительно хотите ' + theText + '?');
return is_confirmed;
}

var windowcard, winurl, winname,ww,wh,sw,sh,opt;

  ww=400;wh=300;
  sw=((screen.width-ww)/2)-40;
  sh=((screen.height-wh)/2)-40;
  opt='status=no,toolbar=no,resizable=yes,menubar=no, scrollbars=yes, left='+sw+', top='+sh+', width='+ww+', height='+wh+' ';

  now = new Date();
  seed = now.getTime();

function openUploadWindow(type) {
  winname="uploadwindow"+type;
  winurl="/_upload/"+type+".php";
  windowupload=window.open(winurl,winname,opt);
  return false;
}


function openGame() {
  ww=500;wh=660;
  sw=((screen.width-ww)/2)-40;
  sh=((screen.height-wh)/2)-40;
  opt='status=no,toolbar=no,resizable=yes,menubar=no, scrollbars=yes, left='+sw+', top='+sh+', width='+ww+', height='+wh+' ';
  winname="XoGame";
  winurl="/game/";
  windowupload=window.open(winurl,winname,opt);
  return false;
}