/**
 * Opens PopUp with given URL
 * @param String URL
 * @param String Name
 * @param Integer Width
 * @param integer Height
 * @param Integer Show location
 * @param Integer Show menu
 * @param Integer Make resizable
 * @param Integer Pos X
 * @param Integer Pos Y
 * @param Integer Show scrolls
 * @param Integer Show status
 * @param Integer Show title
 * @param Integer Show toolbar
 */
function openPopUp (url,popup_name,w,h,l,m,r,x,y,s,stat,title,tools) {
	var features = $H({
		'alwaysRaised': 1,
		'dependent': 1,
		'height': h,
		'width': w,
		'location': l,
		'menubar': m,
		'personalbar': 0,
		'resizable': r,
		'screenX': x,
		'screenY': y,
		'scrollbars': 1,  //s
		'status': stat,
		'titlebar': title,
		'toolbar': tools
	});
	var f = '';
	features.each(function(pair){
		if ( f.length > 0 ) f += ',';
		f += pair.key+'='+pair.value;
	});
	window.open(url, popup_name, '\''+f+'\'');
	features = null;
}
