
/* scripts included/used on most DLGSoftware pages */


function toggleVis( elemID )
{   var elem = document.getElementById( elemID );
	if( elem.style.display != 'none' )
	{        
		elem.style.display = 'none';
	}
	else
	{        
		elem.style.display = 'block';
	}
}

function googleSiteSearch() {
	var searchSite = "www.dlgsoftware.com";
	var searchString = document.searchform.searchstr.value;
	if (searchString != "") {
		searchString = searchString.replace(/ /g,"+");
		window.location = 'http://www.google.com/search?q=site%3a' + searchSite + '+' + searchString;
	}
	return false;
} 

function dlgSiteSearch(searchString) {
	var searchSite = "www.dlgsoftware.com";
	if (searchString != "") {
		searchString = searchString.replace(/ /g,"+");
		window.location = 'http://www.google.com/search?q=site%3a' + searchSite + '+' + searchString;
	}
return false;
} 

//http://en.wikipedia.org/wiki/Flex
function wikipediaSearch(searchString) {
	if (searchString != "") {
		searchString = searchString.replace(/ /g,"+");
		window.location = 'http://en.wikipedia.org/wiki/' + searchString;
	}
return false;
} 

// http://community.adobe.com/help/search.html?q=externalinterface
function flexCommunitySearch(searchString) {
	if (searchString != "") {
		searchString = searchString.replace(/ /g,"+");
		window.location = 'http://community.adobe.com/help/search.html?lbl=flex_product_adobelr&q=' + searchString;
	}
return false;
} 

//http://www.adobe.com/cfusion/search/index.cfm?cat=support&term=externalinterface
function devnetSearch(searchString) {
	if (searchString != "") {
		searchString = searchString.replace(/ /g,"+");
		window.location = 'http://www.adobe.com/cfusion/search/index.cfm?cat=support&term=' + searchString;
	}
return false;
} 

