function goURL(g) {if(g.options[g.selectedIndex].value) {document.location=g.options[g.selectedIndex].value}}

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;
}

function Browser() {
  var ua, s, i;

  this.isIE    = false;  // Internet Explorer
  this.isOP    = false;  // Opera
  this.isNS    = false;  // Netscape
  this.version = null;

  ua = navigator.userAgent;

  s = "Opera";
  if ((i = ua.indexOf(s)) >= 0) {
	this.isOP = true;
	this.version = parseFloat(ua.substr(i + s.length));
	return;
  }

  s = "Netscape6/";
  if ((i = ua.indexOf(s)) >= 0) {
	this.isNS = true;
	this.version = parseFloat(ua.substr(i + s.length));
	return;
  }

  // Treat any other "Gecko" browser as Netscape 6.1.

  s = "Gecko";
  if ((i = ua.indexOf(s)) >= 0) {
	this.isNS = true;
	this.version = 6.1;
	return;
  }

  s = "MSIE";
  if ((i = ua.indexOf(s))) {
	this.isIE = true;
	this.version = parseFloat(ua.substr(i + s.length));
	return;
  }
}

function getElementsByClass(searchClass,node,tag) {
	var classElements = new Array();
	if ( node == null )
		node = document;
	if ( tag == null )
		tag = '*';
	var els = node.getElementsByTagName(tag);
	var elsLen = els.length;
	var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
	for (i = 0, j = 0; i < elsLen; i++) {
		if ( pattern.test(els[i].className) ) {
			classElements[j] = els[i];
			j++;
		}
	}
	return classElements;
}
function showHideFAQ(cid,obj){
	var tgt= MM_findObj("q"+cid+"_o");
	if(tgt.style) tgt= tgt.style;			
	if(obj.style) obj= obj.style;			

	if(tgt.display=="none" || tgt.display==""){
		tgt.display=(browser.isNS || browser.isOP)? "table-row" : "block";
		obj.backgroundImage= ico_min;
	}else{
		tgt.display="none";
		obj.backgroundImage= ico_plus;
	}
}

function expandAll(){
	var objs= getElementsByClass("a");
	isExpand= !isExpand;		
	if(isExpand){
		for (var i=0;i<objs.length;i++){				
			if(browser.isNS || browser.isOP){
				objs[i].style.display="table-row";					
			}else{
				objs[i].style.display="block";
			}				
			
			MM_findObj("q"+i).style.backgroundImage= ico_min;				
		}
		MM_findObj("btns_all").src='i/faq_bCollapseAll.gif';
	}else{
	
		for (var i=0;i<objs.length;i++){			
			objs[i].style.display="none";				
			MM_findObj("q"+i).style.backgroundImage= ico_plus;				
		}
		MM_findObj("btns_all").src='i/faq_bExpandAll.gif';
	}
}

function encode_request(){
	if(document.search_form_.request.value!=""){
		document.search_form_.request_.value = encodeURIComponent(document.search_form_.request.value);		
		document.search_form_.submit();		
		return true;
	}else{
		document.search_form_.request.focus();
		return false;
	}
}
