//-----------------------------------------------------------------------//
function getMonth(sDate)                                                 //
//-----------------------------------------------------------------------//
//          function name: getMonth()                                    //
//             created by: Dustin Brown                                  //
//             created on: 2/20/2001                                     //
//                purpose: given a date ('sDate'), return the month      //
//                         portion of the date.                          //
//             parameters: sDate - the date from which the month will be //
//                         extracted.                                    //
//                returns: the month portion of 'sDate'                  //
// include files required: none                                          //
//-----------------------------------------------------------------------//
{
	//find the position of the first delimiter(if it is there)
	var pos=-1;
	for(var x=0;x<sDate.length;x++){
		if(isNaN(sDate.charAt(x))){
			pos=x;
			break;
		}
	}
	
	//make sure the first delimiter isn't the first character
	if(pos==0)return "";
	
	//if there are no delimeters, set the position variable
	if(pos==-1)pos=2;
	
	//break apart 'sDate' to get the month
	sDate=sDate.substring(0,pos);
	if(sDate.length>1){
		if(sDate.charAt(0)=="0")sDate=sDate.substring(1,2);
	}
	
	//return the month
	return sDate;
}
//End function getMonth()------------------------------------------------//