/*
	evolution101.js
	Autor: Patricia Comte
	Content: All the JavaScript used for the enhancement of the site evolution-101.com
*/

function ShowHide(obj, objImg)
{
	//var objProperty;
	//objProperty=cbeGetElementById(strId).style.display;
	//if (objProperty=='none')
	if (obj.style.display=='none')
	{
		obj.style.visibility='visible';
		obj.style.display='inline';
		objImg.src="images/minus.gif";
	}
	else
	{
		obj.style.visibility='hidden';
		obj.style.display='none';
		objImg.src="images/plus.gif";

	}
}

function fillEvaluationForm(strQueryName)
{
	var 
		strQuery=unescape(location.search),
		intPos,
		strValue;
		
		if (strQuery.indexOf(strQueryName) >= 0) 
	{ 
		intPos = strQuery.indexOf(strQueryName) + strQueryName.length + 1; 
		if (strQuery.indexOf("&", intPos) >= 0) 
		{ 
			strValue=strQuery.substring(intPos, strQuery.indexOf("&", intPos)); 
		} 
		else 
		{ 
			strValue=strQuery.substring(intPos, strQuery.length); 
		} 
	} 
	else 
	{ 
		strValue=""; 
	} 

	return strValue;
}
