// JavaScript Document

function createXmlHttpRequestObject(){	
		var xmlHttp;		
		try{
				xmlHttp=new XMLHttpRequest();
		}catch(e){
			var xmlHttpVersions=new Array('Microsoft.XMLHTTP','MSXML2.XMLHTTP.6.0','MSXML2.XMLHTTP.5.0','MSXML2.XMLHTTP.4.0','MSXML2.XMLHTTP.3.0','MSXML2.XMLHTTP');
			for(var i=0;i<xmlHttpVersions.length&&!xmlHttp;i++){
				try{
					xmlHttp=new ActiveXObject(xmlHttpVersions[i]);
				}
				catch(e) {}
			}
		}
		if(!xmlHttp)
			alert('Error! Cant not create object xmlHttp!');
			else return xmlHttp;
	}
	
//this function used to show one user's former <select></select> settings.
function initiate_select(tag,select_value){
	var select_tag=document.getElementById(tag);
if(select_tag){	//make sure the tag element exists.
	for(point=0;point<select_tag.length;point++){
			if(select_tag.options[point].value==select_value)
				select_tag.options[point].selected=true;
		}
	}
}