// JavaScript Document

function gParam(strParam)
{
	var location = new String( window.location );
	var questionIndex = location.indexOf( "?" );
	var parameters = new Array();
	var parameterString = location.substring( questionIndex + 1 );
	var tempParam = new Array();
	parameters = parameterString.split( "&" );
	
	for(i=0; i <  parameters.length; i++)
	{
		tempParam = parameters[i].split( "=");

		if (tempParam[0] == strParam)
		{
			if (tempParam[1] == null)
			{
				return "";
			} else
			{
				return tempParam[1];
			}
		}
	}
}
