						

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 getNextSibling(startBrother){
  var endBrother=startBrother.nextSibling;
  while(endBrother.nodeType!=1){
    endBrother = endBrother.nextSibling;
  }
  return endBrother;
}
function getPreviousSibling(startBrother){
  var endBrother=startBrother.previousSibling;
  while(endBrother.nodeType!=1){
    endBrother = endBrother.previousSibling;
  }
  return endBrother;
}
function showHideFAQ(obj){
	var tgt= (obj.parentNode.parentNode);
	tgt= getNextSibling(tgt);

	if(tgt.style.display=="block" ||tgt.style.display=="table-row"){
		tgt.style.display="none";
		obj.style.backgroundImage= ico_plus;
	}else{
		if(browser.isNS || browser.isOP){
			tgt.style.display="table-row";					
		}else{
			tgt.style.display="block";
		}		
		obj.style.backgroundImage= ico_min;
	}	
}
function expandAll(){
	var objs= getElementsByClass("a");	
	isExpand= !isExpand;	
	if(isExpand){
		for (var i=0;i<objs.length;i++){	
			var tmp= getPreviousSibling(objs[i]);
			tmp.getElementsByTagName("a")[0].style.backgroundImage= ico_min;

			if(browser.isNS || browser.isOP){
				objs[i].style.display="table-row";					
			}else{
				objs[i].style.display="block";
			}
		}
		MM_findObj("btns_all").src='i/faq_bCollapseAll.gif';
	}else{
	
		for (var i=0;i<objs.length;i++){
			var tmp= getPreviousSibling(objs[i]);			
			tmp.getElementsByTagName("a")[0].style.backgroundImage= ico_plus;


			objs[i].style.display="none";			
		}
		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;
	}
}

function switchClassObj(cobj,name,showName,hideName){
	var tgt= document.getElementById(name);		
	if(tgt.className==hideName){			
		tgt.className=showName;
		cobj.style.backgroundImage='url(i/mp_ico_minus.gif)';
	}else{			
		cobj.style.backgroundImage='url(i/mv_ico_plus.gif)';
		tgt.className=hideName;
	}

}

function ltrim(str) { 
	for(var k = 0; k < str.length && isWhitespace(str.charAt(k)); k++);
	return str.substring(k, str.length);
}
function rtrim(str) {
	for(var j=str.length-1; j>=0 && isWhitespace(str.charAt(j)) ; j--) ;
	return str.substring(0,j+1);
}
function trim(str) {
	return ltrim(rtrim(str));
}
function isWhitespace(charToCheck) {
	var whitespaceChars = " \t\n\r\f";
	return (whitespaceChars.indexOf(charToCheck) != -1);
}