blnClicked = false;

function monitor(e) {
//alert(e.srcElement.id);
if (e.srcElement.id == null){
	blnClicked = false;
}else{
	if  ( ((!(e.srcElement.id.indexOf('btn') >= 0)) && (!(e.srcElement.id.indexOf('td') >= 0)) && e.srcElement.id != '' && e.srcElement.tagName != 'A' && e.srcElement.tagName != 'IMG')) {
		blnClicked = true;
		}

	else if ( (e.srcElement.id.indexOf('btn') >= 0)   ){
		blnClicked = false;
		}
		
	}
}

function SetChange(){
	blnClicked = true;
}

function AlertUser(){
	return confirm ("Changes will only be saved if you use the 'Next Step' button.  Do you wish to continue?");
}

function Check() {
	//return true;
}
	
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function lStripCommas(str){
	var cPos;
	
	cPos = str.indexOf(",");
	str = str.replace("$","");
	while (cPos > 0 ){
		str = str.replace(",","");
		cPos = str.indexOf(",");
	}
	return str;
}

function lStripCommas(str){
	var cPos;
	
	cPos = str.indexOf(",");
	str = str.replace("$","");
	while (cPos > 0 ){
		str = str.replace(",","");
		cPos = str.indexOf(",");
	}
	return str;
}

var searchID;
var searchValue;

function checkKey(oList, e) {
    // Re-initialize if the
    if(oList.id != searchID) {
        searchID = oList.id;
        searchValue = "";
        }

    var theKey;
    var binIE;
    // check for browser event model
    if(window.event) { theKey = window.event.keyCode; binIE = true; }
    else { theKey = e.which; binIE = false; }
    if(theKey == 13) { // check for backspace
       searchValue = ""; // clear the filter
       // prevent the browser from going back to the previous page
       if(binIE) {
            window.event.cancelBubble = true;
            }
       else {
           e.stopPropagation();
           }
       return false;
       }
    // check for alphanumeric keys and append to the search value
    else if((theKey >= 48 && theKey <= 57) || (theKey >= 65 && theKey <= 90) ||
     (theKey == 32) || (theKey >= 96 && theKey <= 105)) {
        searchValue += String.fromCharCode(theKey).toLowerCase();
       }
    else { return false; }
    // loop through the list to select the proper item
    if(searchValue != "") {
       for(var i=0;i<oList.options.length;i++) {
          if(oList.options[i].text.toLowerCase().indexOf(searchValue) == 0) {
             oList.options[i].selected = true;
             }
          }
       }
    }
