// opis parametrow http://msdn2.microsoft.com/en-us/library/ms536651.aspx
jslt.SubWindow=function(){

	/**
	 * 
	 * @param {String} k
	 * @param {String} v
	 */
	this.setFeature=function(k,v){
		this.features[k]=v
	}
	this.open=function(){
		var sf=[]
		for(var el in this.features){
			sf.push(el+"="+this.features[el])
		}
		this.reference=window.open(this.sURL,this.sName,sf.join(","))
	}
	this.isOpened=function(){
		var ref=window[this.sName]
		return typeof(ref)=="object" && !ref.closed
	}
	this.features={}
	this.setFeature("location","no")
	this.setFeature("menubar","no")
	this.setFeature("resizable","no")
	this.setFeature("scrollbars","no")
	this.setFeature("status","no")
	this.setFeature("titlebar","no")
	this.setFeature("toolbar","no")
	this.setFeature("left","0")
	this.setFeature("top","0")
	this.reference=false
	this.sURL=""
	this.sName=""
}