var strURL = 'http://www.omg.org/members/cgi-bin/membershiptxt.cgi';
var rdoURL = 'http://www.omg.org/members/cgi-bin/membershiprdo.cgi';
var strVALUES;
var strVALUE;

function getmembershiptxt(FormName) {

var xmlhttp=false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope with old IE versions.
// and security blocked creation of the objects.
 try {
  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
 } catch (e) {
  try {
   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (E) {
   xmlhttp = false;
  }
 }
@end @*/


if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
	try {
		xmlhttp = new XMLHttpRequest();
	} catch (e) {
		xmlhttp=false;
	}
}
if (!xmlhttp && window.createRequest) {
	try {
		xmlhttp = window.createRequest();
	} catch (e) {
		xmlhttp=false;
	}
}


   xmlhttp.open("GET", strURL,true);
   xmlhttp.onreadystatechange=function() {

   if (xmlhttp.readyState==4) {
   strVALUE = xmlhttp.responseText;
   var strVALUES=strVALUE.split("\n");

   var line_num=0;
   var txt_form;
   while (line_num < strVALUES.length){
   var formarray=strVALUES[line_num].split(":");
   line_num+=1;   
     //alert(formarray[0]);
    if (formarray[0] == 'Message') {
      alert(formarray[1]);
    }
  
     if (formarray[2]){
     txt_form = formarray[1] + ':' +  formarray[2];
     }else{
     txt_form = formarray[1];
     }

   try {
     document.forms[FormName].elements[formarray[0]].value = txt_form;
      } catch (e) {}


   }


  }
 }
 xmlhttp.send(null)

}



function getmembershiprdo(FormName) {

var xmlhttp=false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope with old IE versions.
// and security blocked creation of the objects.
 try {
  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
 } catch (e) {
  try {
   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (E) {
   xmlhttp = false;
  }
 }
@end @*/


if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
	try {
		xmlhttp = new XMLHttpRequest();
	} catch (e) {
		xmlhttp=false;
	}
}
if (!xmlhttp && window.createRequest) {
	try {
		xmlhttp = window.createRequest();
	} catch (e) {
		xmlhttp=false;
	}
}

   xmlhttp.open("GET", rdoURL,true);
   xmlhttp.onreadystatechange=function() {
   if (xmlhttp.readyState==4) {
   strVALUE = xmlhttp.responseText;
   var strVALUES=strVALUE.split("\n");

   var line_num=0;
   while (line_num < strVALUES.length){
   var formarray=strVALUES[line_num].split(":");

   line_num+=1;   

   try {
  for(i=0;i<document.forms[FormName].elements[formarray[0]].length;i+=1){
   if (document.forms[FormName].elements[formarray[0]][i].value == formarray[1]){
    document.forms[FormName].elements[formarray[0]][i].checked = true;
   }
   }

      } catch (e) {}
   }



//    if (xmlhttp.status == 200){
 
//      }   

  }
 }
 xmlhttp.send(null)

}




