function opnBiofL(f_nm){
  var el = document.getElementById('bio_f');
  var box_head="<div style='width:100%;background-color:green; height:20px;text-align:right;'>\n" +
                        "<b onClick=\"javascript:document.getElementById('bio_f').style.visibility='hidden'; doTrance(1);\" style='cursor:pointer;'>X</b>\n</div>\n";
 // doTrance(0);
  el.style.visibility='visible';
  el.innerHTML = "Loading full bio.";
      AjaxRequest.get(
              {
                'url':f_nm
                ,'onSuccess':function(req){
					      el.style.zIndex=3;
                          el.innerHTML=box_head+req.responseText;
						  
                  }
                ,'onError':function(req){
					      el.style.zIndex=3;
				          el.innerHTML = box_head+'Error!\nStatusText='+req.statusText+'<br>Contents='+req.responseText;}
              }
     );
}

function doTrance(x){
  var el=document.getElementById('trance');
  var z = x==0?"200%":0;
  var zi = x==0?1:-1;
  el.style.width=z;
  el.style.height=z;
  el.style.zIndex=zi;
}

function sendMail(i){
		var frm = document.getElementById('frm');
		var el = document.getElementById('frm_box');
		var ur_l="ws/form_mailer.php";
		ur_l+="?NAME="+frm.NAME.value;
		ur_l+="&COMPANY="+frm.COMPANY.value;
		ur_l+="&PHONE="+frm.PHONE.value;
		ur_l+="&EMAIL="+frm.EMAIL.value;
		if(i==2){
			ur_l+="&LOCATION="+frm.LOCATION.value;
			ur_l+="&IM="+frm.IM.value;
			ur_l+="&RATE="+frm.rate.value;
		}
		ur_l+="&COMMENTS="+frm.COMMENTS.value;
	 AjaxRequest.get(
              {
                'url':ur_l
                ,'onSuccess':function(req){
					      //el.style.visibility='hidden';
						  el.innerHTML="<h3>Gone with the wind.</h3>"+req.responseText;
						 //el.innerHTML=ur_l;
						  
                  }
                ,'onError':function(req){
				          el.innerHTML = box_head+'Error!\nStatusText='+req.statusText+'<br>Contents='+req.responseText;}
              }
     );
	 

}

function digDns(){
   var h = document.getElementById('h').value;
   var t = document.getElementById('t')[document.getElementById('t').selectedIndex].value; 
   var ur_l="ws/ip_tools.php?c=1&h="+h+"&t="+t;  
   var el=document.getElementById('dnsdg');
   impasions(el);
   	   AjaxRequest.get(
              {
                'url':ur_l
                ,'onSuccess':function(req){
					      el.style.visibility='visible';
						  el.innerHTML=req.responseText;
						  //el.innerHTML=ur_l;
						  
                  }
                ,'onError':function(req){
				          el.innerHTML = box_head+'Error!\nStatusText='+req.statusText+'<br>Contents='+req.responseText;}
              }
     );
}

function trce(){
   var h = document.getElementById('h_2').value; 
   var ur_l="ws/ip_tools.php?c=2&h="+h;  
   var el=document.getElementById('dnsdg');
   impasions(el);
   	   AjaxRequest.get(
              {
                'url':ur_l
                ,'onSuccess':function(req){
					      
						  el.innerHTML=req.responseText;
						  //el.innerHTML=ur_l;
						  
                  }
                ,'onError':function(req){
				          el.innerHTML = box_head+'Error!\nStatusText='+req.statusText+'<br>Contents='+req.responseText;}
              }
     );
}

function impasions(el){
   el.style.visibility='visible';
   el.style.textAlign='center';
   el.innerHTML="<img src='images/loading10.gif' />";	
}
