debug00=false;

/*
	This function parses URL arg string, parts separated by an & into
	the name=value pairs and returns the values for the name passed
	
	ARGS:	aTheArgs = The & separated arg string
			aTheArgParam = The name part to look for
	
	RETURNS: a null if no matching value is found
*/
function getArgPart(aTheArgs, aTheArgParam)
{
	argPartRet=null;

		if (debug00) window.alert('aTheArgs = '+aTheArgs );
			
	argPartList=aTheArgs.split("&");

		if (debug00) window.alert('argPartList = '+argPartList );

	for(ipart=0; ipart<argPartList.length; ipart++) {
	
		t=argPartList[ipart];
		if (debug00) window.alert('argPartList '+ipart+' = '+ t );

		cop=argPartList[ipart].split("=");

		if (debug00) window.alert('cop[0] = ' + cop[0] );

		if ( (cop[0] != null) && (cop[0] == aTheArgParam) ) {
			if (debug00) window.alert('cop[1]xx = ' + cop[1] );
			argPartRet = cop[1];
			break;
		}

	}
	
	return argPartRet;	

}
