function goTo(obj, selectParamName, _getParamsArray) {
	var url =  '?' + selectParamName + '=' + obj.options[obj.selectedIndex].value;
	if (_getParamsArray.length > 0) {
		for(i = 0; i < _getParamsArray.length; i ++) {
			name = _getParamsArray[i];			
			url += '&' + name + '=' + gup(name);
		}
	}	
	document.location=url;
}

function goToFilter1(obj, selectParamName, _iniParmsArray) {	

	//_uID, _ID, _sID, _typeID
	
	var uID = gup('uID');	
	var ID = gup('ID');
	var sID = gup('sID');	
	var type = gup('typeID');	

	if (_iniParmsArray[0] != '') uID = _iniParmsArray[0];
	if (_iniParmsArray[1] != '') ID = _iniParmsArray[1];
	if (_iniParmsArray[2] != '') sID = _iniParmsArray[2];
	if (_iniParmsArray[3] != '') type = _iniParmsArray[3];	
	
	if (selectParamName == 'uID') {
		uID = obj.options[obj.selectedIndex].value;		
	}
	if (selectParamName == 'ID') {
		ID 	= obj.options[obj.selectedIndex].value;		
	}
	if (selectParamName == 'sID') {
		sID = obj.options[obj.selectedIndex].value;	
	}	

	if (selectParamName == 'typeID') {
		for (i = 0; i < document.typeSelect.typeID.length; i++) {	
			if (document.typeSelect.typeID[i].checked == true) {				
				type = document.typeSelect.typeID[i].value;
				break;
			}
		}		
	}
	
	//alert(selectParamName + ' ' + '?uID=' + uID + '&ID=' + ID + '&sID=' + sID);
	document.location = '?typeID=' + type + '&uID=' + uID + '&ID=' + ID + '&sID=' + sID;			
}

function goToFilter(obj, selectParamName) {	
	var uID = gup('uID');	
	var ID = gup('ID');
	var sID = gup('sID');	
	var type = gup('typeID');	
	if (selectParamName == 'uID') {
		uID = obj.options[obj.selectedIndex].value;		
	}
	if (selectParamName == 'ID') {
		ID 	= obj.options[obj.selectedIndex].value;		
	}
	if (selectParamName == 'sID') {
		sID = obj.options[obj.selectedIndex].value;	
	}	

	if (selectParamName == 'typeID') {
		for (i = 0; i < document.typeSelect.typeID.length; i++) {	
			if (document.typeSelect.typeID[i].checked == true) {				
				type = document.typeSelect.typeID[i].value;
				break;
			}
		}		
	}
	
	//alert(selectParamName + ' ' + '?uID=' + uID + '&ID=' + ID + '&sID=' + sID);
	document.location = '?typeID=' + type + '&uID=' + uID + '&ID=' + ID + '&sID=' + sID;			
}

function gup(name)
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";  
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )	
    return "";
  else
    return results[1];
}
function changeVisibility(id) {
	var obj = document.getElementById(id).style;
	if (obj.display == "") {		
		obj.display = "block";
	} else if (obj.display == "none") {		
		obj.display = "block";			
	} else if (obj.display == "block") {	
		obj.display = "none";		
	}
}
function MM_changeProp(objId,x,theProp,theValue) { //v9.0
  var obj = null; with (document){ if (getElementById)
  obj = getElementById(objId); }
  if (obj){
    if (theValue == true || theValue == false)
      eval("obj.style."+theProp+"="+theValue);
    else eval("obj.style."+theProp+"='"+theValue+"'");
  }
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}