	/*******************************************************
	* 
	* Javascript routines...
	* 
	* encoding : -=cp1250=-
	*
	* @author  Deepend <info@deepend.cz>
	* @version $Revision: 0.9 $
	*
	* (c) 2002 Deepend <http://www.deepend.cz>
	*          All Rights Reserved
	*          read licence.txt in for licence agreement
	*
	* vim600: set foldmethod=marker:
	* vim: set ts=4:
	*******************************************************/
	
	/* Miscelanous graphicla functions */
	function clearStatus()
	{ 	//{{{
		setTimeout("window.status=' ';",50);
	}	//}}}

	function openCenteredWindow(anchor,w,h,name,params)
	{	//{{{
		sw=screen.availWidth;
		sh=screen.availHeight;
		xpos=(sw-w)/2;
		ypos=(sh-h)/2;
		win = window.open(anchor,name,"width="+w+",height="+h+",top="+ypos+",left="+xpos+","+params);
		win.focus();
	}	//}}}

	function iso2ascii(txt)
	{	//{{{
		var from = '؊ݎ';
		//var to   = 'ACDEEINORSTUUYZacdeeinorstuuyz';
		var to   = 'acdeeinorstuuyzacdeeinorstuuyz';
		
		var out = '';
		
		for (var c=0;c<txt.length;c++) {
			ch = txt.charAt(c);
			for (var x=0;x<from.length;x++) {
				i = from.charAt(x);
				if (ch==i) {
					out = out + to.charAt(x);
				}
			}
			if (out.length==c) {
				out = out + ch.toLowerCase();
			}
		}

		return out;
	}	//}}}
