function zamien( num1 , num2 ) {
	if( num2 == 2 ) {
		document.getElementById('m' + num1).src = 'gfx/menu' + num1 + '2.jpg';
	} else {
		document.getElementById('m' + num1).src = 'gfx/menu' + num1 + '1.gif';
	}
}




function podglad() {
//	document.location( "admin,podglad" );
//	alert( document.form.text.value );

	okno( document.form.text.value );

}




function okno(text) {
	text = text.replace( /\n/gi	, '<br>' + "\n" );
//	text = text.replace( '<'	, '&lt;' );
//	text = text.replace( '>'	, '&gt;' );
//	text = text.replace( '['	, '<' );
//	text = text.replace( ']'	, '>' );

	aw=screen.availWidth;
	ah=screen.availHeight;

	w= 820;
	h= 600;

	ustawienia=
		"left=" + (aw-w)/2 + ","
		+"top=" + (ah-h)/2 + ","
		+"screenX=" + (aw-w)/2 + ","
		+"screenY=" + (ah-h)/2 + ","
		+"width=" + w + ","
		+"height=" + h + ","
		+"innerWidth=" + w + ","
		+"innerHeight=" + h + ","
		+"toolbar=no,"
		+"location=no,"
		+"directories=no,"
		+"status=no,"
		+"menubar=no,"
		+"scrollbars=yes,"
		+"resizable=no"

		noweOkienko = window.open("",'podgl¹d',ustawienia);

	noweOkienko.document.open();
	noweOkienko.document.clear();
	noweOkienko.document.write(
		'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">' + "\n"
		+'<Html>' + "\n"
		+'<Head>' + "\n"
			+'<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">' + "\n"
			+'<link rel="stylesheet" type="text/css" href="css/style.css" media="screen" title="Styl podstawowy">' + "\n"
			+'<title>LEMARK serwis - podgl¹d</title>' + "\n"
		+'</Head>' + "\n"
		+'<Body onclick="self.close()">' + "\n"
		+'<div style="margin: 10px 4px; padding: 1px 0; width: 792px; background-color: black">' + "\n"
			+'<div style="margin: 0 1px; padding: 5px 0 20px 0; width: 790px; background-image: url(gfx/inside.gif); text-align: left">' + "\n"
				+'<h1>' + "\n"
					+text
				+'</h1>' + "\n"
			+'</div>' + "\n"
		+'</div>' + "\n"
		+'</Body>' + "\n"
		+"</Html>");
	noweOkienko.document.close();
	noweOkienko.focus();
}

