function switchLang(l,stub) {

if (d("advertForm")) {
	if (d("lang")) {  
		d("lang").value=l;
		d("advertForm").submit();
	} else
		window.open("?" + stub + "&lang="+l,"_self");
} else
	window.open("?" + stub + "&lang="+l,"_self");	
}


function toggle(e) {
var q;	
	
	el=d(e);
	q=1000;
	if (el) {	
		
		//alert(el.style.color);
		
		
		if (!((el.style.color=="rgb(0, 255, 0)")||(el.style.color=="#00ff00" ))) { 
			el.style.color="#00ff00";			
			q=1000;
			
		}
		else {
			el.style.color="white";			
		}
	}
	s='toggle(\''+e+'\');';
	//alert(s);
	
	window.setTimeout(s,q);
	
}