//<![CDATA[

// EIN- UND AUSSCHALTEN SICHTBARKEIT LAYER
function setDivVisible(oid, cont) {
	oid = document.getElementById(oid);
	if (typeof oid != 'object') {
                return false;
	}
	else {
			idDiv = oid.getElementsByTagName("div");
			for ( var i = 0; i < idDiv.length; i++  ) {
				if(idDiv[i].className.indexOf(' none') == -1) {
				    idDiv[i].className = idDiv[i].className + ' none';
				}
			}
			cont = document.getElementById(cont);
			if (typeof cont != 'object') {
    	      return false;
			}
			else {
				if(cont.className.indexOf(' none') != -1) {
			    	diff = cont.className.length-5;
				    cont.className = cont.className.substr(0,diff);
				}
			}
		}
	}

// URL REDIRECT PULLDOWN
	function openURL()	{
		selIndex = document.ab.allBlogs.selectedIndex;
		goToURL = document.ab.allBlogs.options[selIndex].value;
		top.location.href = goToURL;
	}
	
// FUER FOCUS AND BLUR BEI SUCHFELDERN
	function clearValue(oid) {
		
		if (oid == 'search3') {
			defaultValue = "Search ...";
		}
		else if (oid == 'search2') {
			defaultValue = "Search ...";
		}
		else {
			defaultValue = "Search ...";		
		}
		
		if (document.getElementById(oid).value == defaultValue) {
			document.getElementById(oid).value="";
		}
	}
	function setValue(oid) {
		if (oid == 'search3') {
			defaultValue = "Search ...";
		}
		else if (oid == 'search2') {
			defaultValue = "Search ...";
		}
		else {
			defaultValue = "Search ...";		
		}
		if (document.getElementById(oid).value == "") {
			document.getElementById(oid).value=defaultValue;
		}
	}

//]]>