function CleanWindow (target, wname, w, h) {

	if (browser) {

		var t = window.screenY + 45
		var l = window.screenX + 45

	} else {

        var t = window.screenTop + 20
		var l = window.screenLeft + 40

		if(!opener) {

			var t = 40
			var l = 40
		}
	}

	w = w == undefined || w < 1 ? 500 : w
	h = h == undefined || h < 1 ? 500 : h

	win = window.open (target, wname, 'height=' + h + 'px, width=' + w + 'px, location=no, menubar=no, resizable=yes, scrollbars=yes, status=yes, toolbar=no, top=' + t + 'px, left=' + l + 'px')
    win.focus ()
}

function CleanFullscreenWindow (target, wname) {
	win = window.open (target, wname, 'type=fullWindow, fullscreen, location=yes, menubar=yes, scrollbars=yes, status=yes, toolbar=no, resizable=yes')
    win.focus ()
}
