function gfExtractFuncAccess(vstrGroupFuncs, vstrFunc){
	var intPos;
	var strAccess;
	intPos = vstrGroupFuncs.indexOf(vstrFunc);
	if (intPos > -1) {
		strAccess = vstrGroupFuncs.substr(intPos + vstrFunc.length, 1);
		strAccess = strAccess.toUpperCase();
		if (strAccess =='Y') {
			return 'Y';
		}
		else {
			return 'N';
		}		
	}	
	else {	
		return 'N';
	}
}
function gfSetVis(vstrID, vintVis){
	var strVis;
	if (vintVis ==0) {
		strVis = 'hidden';
	}
	else {
		strVis = 'visible';
	}	
	if (document.all) {
		document.all['' + vstrID + ''].style.visibility = strVis;
	}
	else if (document.getElementById) {
		document.getElementById('' + vstrID + '').style.visibility = strVis;
	}
}

function gfSetInnerHTML(vstrID, vstrHTML){
	if (document.all) {
		document.all['' + vstrID + ''].innerHTML = vstrHTML;
	}
	else if (document.getElementById) {
		document.getElementById('' + vstrID + '').innerHTML = vstrHTML;
	}
}
function newWinNoRef(lnk) {
    var newWin = ''; 
    openWin(newWin, lnk)
}
function openWin(winSearch, winLoc, w, h) {
	var winLoc;
	var winStats;
	if (!w) {
		w = 775;
	}
	if (!h) {
		h = 550;
	}
		
	var LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	var TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	winStats='toolbar=no,location=no,directories=no,menubar=no,status=yes,scrollbars=yes,height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',resizable=yes'
	if (!winSearch.closed && winSearch.location) {
	}
	else {	 
		winSearch = window.open(winLoc,"",winStats);
		if (!winSearch.opener) {
		    winSearch.opener = self;
		    //self.opener = winSearch;
		}    
	}    
	winSearch.focus();
	return winSearch;
}


