function show_image(src, width, height) {
	var name = navigator.appName;
	if(name == "Microsoft Internet Explorer") {
	    width = width + 20;
	    height = height + 30;
	}
	previewer = window.open(src,'preview','toolbar=no,menubar=no,scrollbars=no,resize=yes,width='+width+',height='+height);
}

function small_font() {
	var font_size = get_val_cookie('rdc_font');

	if(font_size != '') {
		font_size = parseInt(font_size);
		if(font_size > 12) {
			font_size = font_size - 1;
		}
		else {
			font_size = 12;
		}
		document.getElementById('PanelModulu').style.font=font_size+'px Arial';
		document.cookie = "rdc_font="+font_size;
	}
}

function big_font() {
	var font_size = get_val_cookie('rdc_font');

	if(font_size != '') {
		font_size = parseInt(font_size);
		if(font_size < 25) {
			font_size = font_size + 1;
		}
		else {
			font_size = 25;
		}
		document.getElementById('PanelModulu').style.font=font_size+'px Arial';
		document.cookie = "rdc_font="+font_size;
	}
	else {
		document.getElementById('PanelModulu').style.font='12px Arial';
		document.cookie = "rdc_font=12";
	}
}

function get_val_cookie(param_name_) {
	param_name = param_name_+"=";
	start_param_name = document.cookie.indexOf(param_name);
	if(start_param_name < 0) return false;
	stop_param_name = start_param_name + param_name.length;
	stop_param = stop_param_name + 2;
	return document.cookie.substring(stop_param_name, stop_param);
}

function check_font_size() {
	var font_size = get_val_cookie('rdc_font');
	if(font_size != '' && font_size != false){ 
		document.getElementById('PanelModulu').style.font=font_size+'px Arial';
	}
	else{
		document.getElementById('PanelModulu').style.font='12px Arial';
	}
	 
	//alert(font_size);
}