function ArataMeniu(whichLayer)
{
	showRow = (navigator.appName.indexOf("Internet Explorer") != -1) ? "block" : "table-row";
	if (document.getElementById)
	{
		var style2 = document.getElementById(whichLayer).style;
		//style2.display = style2.display? "":"block";
		style2.display=(style2.display=="none")? showRow :"none";
	}
	else if (document.all)
	{
		var style2 = document.all[whichLayer].style;
		style2.display=(style2.display=="none")? showRow :"none";
	}
	else if (document.layers)
	{
		var style2 = document.layers[whichLayer].style;
		style2.display=(style2.display=="none")? showRow :"none";
	}
}
function ChangeAction() {
	var number = document.forms['cautare_site'].q.selectedIndex;
	//var sir = document.cautare_site.q.value.replace(' ','-')
	
	var strReplaceAll = document.forms['cautare_site'].q.value;
	var intIndexOfMatch = strReplaceAll.indexOf( " " );
	 
	// Loop over the string value replacing out each matching
	// substring.
	while (intIndexOfMatch != -1){
	// Relace out the current instance.
	strReplaceAll = strReplaceAll.replace( " ", "-" )
	 
	// Get the index of any next matching substring.
	intIndexOfMatch = strReplaceAll.indexOf( " " );
	}	
	document.forms['cautare_site'].action =
	'cautare/'+strReplaceAll+'.html';
	document.forms['cautare_site'].submit();
}

function resizeSWF(nHeight) {
	//alert(nHeight);	
	nHeight += "px";
	document.getElementById("resizer").style.height = nHeight;
}


