/**
*	open new window with given properties
*/
function popup ( w_url, w_width, w_height , w_name  ) 
{
	if ( w_name == "" )
	{
	    w_name = "Loading"; 
	}
	var w_left = (screen.width  - w_width ) / 2;
	var w_top  = (screen.height - w_height) / 2;

	popupWindow = window.open(w_url, w_name, "toolbar=no,menubar=no,scrollbars=auto,resizeable=yes,status=no,location=no,directories=no,copyhistory=no,height="+w_height+",width="+w_width+",left="+w_left+",top="+w_top+",screenX="+w_left+",screenY="+w_top) ;

	popupWindow.focus();
}

/**
*	call focus page, so its active and print document
*/
function printMe() 
{
	parent.print_content.focus();
	parent.print_content.print();
}

/**
*	toggle buttons
*/
function toggle_img (id,stat) 
{
		
	if ( stat == 1)
	{
		document.getElementById(id).src = '/_images/btn_'+id+'-h.gif';
	} 
	else 
	{
		document.getElementById(id).src = '/_images/btn_'+id+'.gif';
	}
}

function get_list( nr )
{
	result = Sortable.serialize( nr,[options] ) ; 

	location.href=	 "?cmt&" + result ;
	
	return (  result );
	
}

function saved_changes( nr )
{
	result = Sortable.serialize( nr ,[options]) ; 

	//alert( result ); 	
	
	//return false; 
	
	location.href=	 "?cmt&" + result ;
	return false; //stop click
}

