function $(v) { return(document.getElementById(v)); }
function $S(v) { return($(v).style); }
function agent(v) { return(Math.max(navigator.userAgent.toLowerCase().indexOf(v),0)); }
function isset(v) { return((typeof(v)=='undefined' || v.length==0)?false:true); }
function XYwin(v) { var z=agent('msie')?Array(document.body.clientHeight,document.body.clientWidth):Array(window.innerHeight,window.innerWidth); return(isset(v)?z[v]:z); }

function sexyTOG() {
	
	document.onclick=function(){
		optionenAktiv=0;
		$S('sexyBG').display='none';
		$S('sexyBOX').display='none';
		document.onclick=function(){};
		};
	}

function optionen(b,h) {
	
	optionenAktiv = 1;

	setRadio = checkOptions('justCheck');
	
	//alert(setRadio);
	
	var v = "<table><tr><td><span class='txtwhite'><br><input onclick=startRSS(1); id=o1 type=radio name=h1";
	if(setRadio==1){
		v+=" checked";
		}
	v+=">&nbsp;<label for=o1>Heise News \"Allgemein\"</label>";
	v+="<br><input onclick=startRSS(2) id=o2 type=radio name=h1";
	if(setRadio==2){
		v+=" checked";
		}
	v+=">&nbsp;<label for=o2>Heise News \"Security\"</label><br><input onclick=stopRSS(); id=o3 type=radio name=h1";
	if(setRadio==3){
		v+=" checked";
		}
	v+=">&nbsp;<label for=o3>Heise News deaktivieren</label><br><br>&nbsp;&nbsp;<input style=\"font-size: 10;\" type=submit value='Fertig' onClick='sexyTOG()'></span></td></tr></table>";
	
	setTimeout("sexyTOG()",100);
	$S('sexyBG').height=XYwin(0)+'px';
	$S('sexyBG').display='block';
	$('sexyBOX').innerHTML='<div class="sexyX"><span class=txtwhite><b>RSS Optionen</b></class>'+"<\/div>"+v;
	$S('sexyBOX').left=Math.round((XYwin(1)-b)/2)+'px';
	$S('sexyBOX').width=b+'px';
	$S('sexyBOX').height=h+'px';
	$S('sexyBOX').display='block';
	}