function wow(url,x,y)
{
 var win = launchCenter(url, 'center', x, y);
 //document.write(win);
}

function launchCenter(url, name, height, width) {
  /*if (height=='h' && width=='w')
  {
	  var str = "scrollbars,status,resizable,";
  }*/
  var str = "";
  /*else
	{	
		var str = "status,";
	}*/
  str += "height=" + height + ",innerHeight=" + height;
  str += ",width=" + width + ",innerWidth=" + width;
  if (window.screen) {
    var ah = screen.availHeight - 30;
    var aw = screen.availWidth - 10;

    var xc = (aw - width) / 2;
    var yc = (ah - height) / 2;

    str += ",left=" + xc + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
  }
   return window.open(url, name, str);

   //return str;
   
}

var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbars=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}