function TrixTG_selectedblocks(i)
{
  var tempdisplay, no;
  if(document.getElementById("TrixTG_selectblock"+i).checked == true)
    tempdisplay="block";
  else
    tempdisplay= "none";
  document.getElementById("TrixTG_setting"+i).style.display=tempdisplay;
  if(i==3)
	    document.getElementById("TrixTGP_genhdr").style.display = tempdisplay;
  else if(i==7){
    	document.getElementById("TrixTG_setting12").style.display = tempdisplay;
		no = document.getElementById("TrixTG_gensetsidebarno").value;
		TrixTG_showsidemain(no);
  }
  else if(i==8)
	    document.getElementById("TrixTGP_outerfooter").style.display = tempdisplay;  
  else if(i==5)
	    document.getElementById("TrixTGP_crossgen").style.display = tempdisplay;    
}	
function TrixTG_saveinterval()
{
  var temp = document.getElementById("TrixTG_saveoption").value;
  temp = parseInt((temp.replace(/[^0-9]/g,'')).replace(/^[0]+/g,''));
  if (isNaN(temp)) temp = 0;
  document.getElementById("TrixTG_saveoption").value = temp;
  clearInterval(TrixTG_c);
  if(temp > 0)
    TrixTG_c = setInterval("TrixTG_save()",temp * 1000); 
}	
function TrixTG_save()
{
  try {			
  document.getElementById(TrixTG_flashid).TrixTG_savedata(TrixTG_returncookiestring()); }
  catch(err){			  
			  alert("There is some problem initialing your request. Make sure you have the latest Flash Plugin. Using Firefox is recommended. Sorry for the inconvienience."); }
		 
}
function TrixTG_datareceive(string)
{
  TrixTG_loadform(string);
  TrixTG_changestatus();	  
} 
function TrixTG_load()
{
  try {			
		document.getElementById(TrixTG_flashid).TrixTG_loaddata(); }
  catch(err){			  
		alert("There is some problem initialing your request. Make sure you have the latest Flash Plugin. Using Firefox is recommended. Sorry for the inconvienience."); }
}
function TrixTG_loaduserset()
{
 var string = document.getElementById("TrixTG_showcookiestring").value;
 TrixTG_loadform(string);
}
function TrixTG_showuserset()
{
 document.getElementById("TrixTG_showcookiestring").value = TrixTG_returncookiestring();
}



