	function popUpSize(urlstr,w,h) {
		popUp({url:urlstr,name:urlstr.substring(6,12),width:w,height:h});
	}
	function popUp(obj) {
		var width=obj.width ? obj.width : 350;
		var height=obj.height ? obj.height : 300;
		var mywindowname=obj.name!=null && obj.name>'' ? obj.name : "defPopUp";
		mywindowname = mywindowname.replace('.','_').replace(',','_').replace('/','_').replace('&','_').replace('?','').replace('?','_');
		var url='?';
		var x = obj.x ? obj.x : parseInt((screen.width - width) / 2.0);
		var y = obj.y ? obj.y : parseInt((screen.height - height) / 2.0);
		var opts = "width="+width+",height="+height+",top=" + y + ",left=" + x;
		if (obj.statusBar!=null) opts+=",status="+obj.statusBar;
		if (obj.isResizable) opts+=",resizable="+obj.isResizable;
		if (obj.isScrollBar) opts+=",scrollbars="+obj.isScrollBar;
		if (!obj.url) {
			if (obj.action) url+='&action='+obj.action;
			if (obj.process) url+='&process='+obj.action;
			if (!obj.notInFrame) url+='&frame=1';
		} else url=obj.url;
		//alert(url+","+mywindowname+","+opts);
		try {
			if (navigator.userAgent.indexOf('Chrome/') > 0) {
				if (window.detwin) {
					window.detwin.close();
					window.detwin = null;
				}
			}
		var my_window = window.open(url, mywindowname, opts);
			my_window.focus();
		} catch (e) {}
		
	}

