//S95
var firstMonth=01;
var firstYear=2008;
var lastMonth=12;
var lastYear=2011;
var notFoundPage="undercon.htm";

var lsYear, lsMonth;
var lsArray,i;
var lsURL, lsTemp;

lsURL = location.search;
if (lsURL != "") {
	lsTemp = lsURL.substring(1,lsURL.length);
	lsArray = lsTemp.split("&",lsTemp.length);
	if (lsArray.length==2) 
	{
		lsYear = lsArray[0];
		lsMonth = lsArray[1];
		if ((lsYear.length == 4) && (lsMonth.length == 2))
			goToform(lsYear, lsMonth);
	}
}


function goToform(aYear, aMonth)
{
	var theYear, theMonth, theYY, theHref;
	
	theYear = parseInt(aYear);
	switch(theYear) {
		case 2008: theYY = "08";
		break;
		case 2009: theYY = "09";
		break;
		case 2010: theYY = "10";
		break;
		case 2011: theYY = "11";
		break;

	}
	theMonth = parseInt(aMonth)
	if (((theYear > firstYear) && (theYear < lastYear)) ||
		((theYear == firstYear) && (theMonth >= firstMonth)) ||
		((theYear == lastYear) && (theMonth <= lastMonth)))
	{ 
		theHref = "ipfe" + theYY + aMonth + ".html#Menu=ChildMenu7";
	}
	else
	{
		theHref = notFoundPage;
	}
	
	window.location = theHref;
}
	
	
function jumpTo(aForm)
{
	var theHref;
	var thePrefix, theYear, theMonth, theYY, strYear, strMonth;
	thePrefix = aForm.hidden.value;
	strYear = aForm.select1.options[aForm.select1.selectedIndex].value;
	theYear = parseInt(strYear)
	switch(theYear) {
		case 2008: theYY = "08";
		break;
		case 2009: theYY = "09";
		break;	
		case 2010: theYY = "10";
		break;			
		case 2011: theYY = "11";
		break;			

	}
	strMonth = aForm.select2.options[aForm.select2.selectedIndex].value;

	if (strMonth=="08")
	{
		theMonth="8";
	}
	else if (strMonth=="09")
	{
		theMonth="9";
	}
	else
	{
		theMonth = parseInt(strMonth)
	}

//	theMonth = parseInt(strMonth)
	if (((theYear > firstYear) && (theYear < lastYear)) ||
		((theYear == firstYear) && (theMonth >= firstMonth)) ||
		((theYear == lastYear) && (theMonth <= lastMonth)))
	{ 
		theHref = thePrefix + theYY + strMonth + '.html#Menu=ChildMenu7';
	}
	else
	{
		theHref = notFoundPage;
	}
//	alert(theHref);	
	window.location=theHref;

}
