function SettingChar(){
  if(document.cookie.indexOf("FontSelected=")!=-1){
	FontSelected = document.cookie;
	var cut = FontSelected.indexOf("FontSelected=");
	var FontSelectedOk = FontSelected.substring(cut+13,cut+14);
    FontSelected = FontSelectedOk;
  } else {
    FontSelected = 1;
  }
  if(FontSelected==""){ FontSelected = 1; }
  DimCar(FontSelected);
}

function DimCar(whatDim){
    if(whatDim<1 || whatDim>3){ whatDim = 1; }
	MenuFont = "10px";
	MenuLeft = "11px";
	SearchForm = "10px";
	Content = "11px";
	if(whatDim==1){ MenuFont = "10px"; }
    if(whatDim==2){ MenuFont = "11px"; }
    if(whatDim==3){ MenuFont = "12px"; }
	if(whatDim==1){ MenuLeft = "11px"; }
    if(whatDim==2){ MenuLeft = "12px"; }
    if(whatDim==3){ MenuLeft = "14px"; }
	if(whatDim==1){ HomeForm = "10px"; }
    if(whatDim==2){ HomeForm = "11px"; }
    if(whatDim==3){ HomeForm = "12px"; }
	if(whatDim==1){ Content = "11px"; }
    if(whatDim==2){ Content = "12px"; }
    if(whatDim==3){ Content = "13px"; }
	if(document.getElementById("menu")) document.getElementById("menu").style.fontSize = MenuFont;
	if(document.getElementById("leftMenu")) document.getElementById("leftMenu").style.fontSize = MenuLeft;
	if(document.getElementById("simple_search")) document.getElementById("simple_search").style.fontSize = HomeForm;
	if(document.getElementById("sondaggioHome")) document.getElementById("sondaggioHome").style.fontSize = HomeForm;
	if(document.getElementById("content")) document.getElementById("content").style.fontSize = Content;

	
   expireDate = new Date;
   expireDate.setMonth(expireDate.getMonth()+6);
   document.cookie = "FontSelected=" + whatDim + ";expires=" + expireDate.toGMTString();
}
