
function doShowHideCommonDiv(sId) 
{
	var rowId = document.getElementById(sId + '_detail');
	var imgId = document.getElementById(sId + '_img');
	
	if (rowId)
		if (rowId.style.display!='')
		{
			document.getElementById(sId + '_detail').style.display='';
			
			if(document.getElementById(sId + '_bot'))
				document.getElementById(sId + '_bot').style.display='';
			if(document.getElementById(sId + '_bot2'))
				document.getElementById(sId + '_bot2').style.display='none';
			if(document.getElementById(sId + '_desc'))
				document.getElementById(sId + '_desc').style.display='none';
			if (imgId)
			{
				imgId.src='common/images/arrowUp.gif';
				imgId.alt='Close Window';
			}
		}
		else
		{
			document.getElementById(sId + '_detail').style.display='none';
			
			if(document.getElementById(sId + '_bot'))
				document.getElementById(sId + '_bot').style.display='none';
			if(document.getElementById(sId + '_bot2'))
				document.getElementById(sId + '_bot2').style.display='';
			if(document.getElementById(sId + '_desc'))
				document.getElementById(sId + '_desc').style.display='';
			if (imgId)
			{
				imgId.src='common/images/arrowDown.gif';
				imgId.alt='Expand Window';
			}
		}
}
function getQueryString(sKey)
{
	var oQueryString = new Array;
	var sFullUrl = document.URL;
	var sQueryPart;
	var sQueryValue;
	var oQueryList;
	
	if(sFullUrl && sFullUrl != '' && sFullUrl.indexOf('?') != -1)
	{
		// parse current url into an array with the keys/values
		sQueryPart = sFullUrl.substring(sFullUrl.indexOf('?') + 1, sFullUrl.length);
		
		oQueryList = sQueryPart.split('&');
		
		for (var i = 0 ; i < oQueryList.length; i++)
		{
			// for each key/value, split them at the '='
			// and add them to the qerystring array
			var oQueryItem = oQueryList[i].split('=');
			
			
			if(oQueryItem && oQueryItem.length > 0 && oQueryItem[0] != '' && oQueryItem[0] == sKey)
			{
				sQueryValue = oQueryItem[1];
				break;
			}
		}
			
		return sQueryValue;
	}
	else return false;
}
