function leafJs()
{
	this.eval_xhr = function (responce){eval(responce)}
      this.popup = function(url, width, height,scrollbars){

        if (typeof(scrollbars)==undefined) var scrollbars = 'no';
        var positionCode="";

        new_window = window.open(url,"sample",
        "width="+width+",height="+height+","+
        positionCode+
        "toolbar=no,"+
        "bar=no"+
        "location=no,"+
        "status=no,"+
        "menubar=no,"+
        "scrollbars=" + scrollbars + ","+
        "resizable=1");



        window.name='main';


      }

      this.alert = function(value){alert(value)}
      this.confirm = function(value){return confirm(value)}
}

leafJs = new leafJs();
