
 /****************************************************************************\
 # Creation date :-> 28-03-2008 [dd-mm-yyyy]                                  #
 # Last update   :-> 13-04-2008 [dd-mm-yyyy]                                  #
 #                                                                            #
 # Author        :-> Antonio Magdic  <antonio@eburza.hr>                      #
 \****************************************************************************/

	function ChangeFontSize(mySize) {
		document.body.style.fontSize = mySize + "px";
		CreateCookie('FontSize', mySize, 14);
		
		$('myFontSize11').className = "";
		$('myFontSize12').className = "";
		$('myFontSize14').className = "";
		$('myFontSize15').className = "";
		
		$('myFontSize'+mySize).className = "selected";
	} // end of the 'ChangeFontSize()' function

	function CreateCookie(name, value, days) {
		if(days) {
			var date = new Date();
			date.setTime(date.getTime()+(days*24*60*60*1000));
			var expires = "; expires="+date.toGMTString();
		}
		else var expires = "";
		document.cookie = name+"="+value+expires+"; path=/";
	} // end of the 'CreateCookie()' function

	function ReadCookie(name) {
		var nameEQ = name + "=";
		var ca = document.cookie.split(';');
		for(var i=0;i < ca.length;i++) {
			var c = ca[i];
			while (c.charAt(0)==' ') c = c.substring(1,c.length);
			if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
		}
		return null;
	} // end of the 'ReadCookie()' function

	function EraseCookie(name) {
		CreateCookie(name, "", -1);
	} // end of the 'EraseCookie()' function
		
	function reportError() {
		alert('The requested URL was not found on this server.');
	} // end of the 'reportError()' function
