	
	/* FUNCTIONS.JS */
	
	function popFormWin(pageUrl) { 
		var pURL=pageUrl; 
			pInfo='toolbar=0,'; 
			pInfo+='location=0,'; 
			pInfo+='directories=0,'; 
			pInfo+='status=0,'; 
			pInfo+='menubar=1,'; 
			pInfo+='scrollbars=1,'; 
			pInfo+='resizable=1,'; 
			pInfo+='width=800,'; 
			pInfo+='height=500'; 
		window.open(pURL, 'newWin', pInfo); 
		}
		
	function showTimezoneEdit() {
		document.getElementById('divTimezoneChange').style.display ='';
	}
	
	/* AJAX FUNCTIONS */
	
	var url = 'ajxProcessor.aspx?function=';
	
	// create instance of a new XMLHTTP object
	var oHTTP = getHTTPObject();
	
	function loadTarget(sURL) {
		
		if (oHTTP != null) {
		
			// open HTTP connection and send async request
			oHTTP.open('GET', url+sURL, true);
			
			// If its loading, display a loading gif
			if(oHTTP.readyState == 1)
			{
				if (iType == 1) {
					//document.getElementById('imgWait').src = "image/wait.gif";
				}
			}
			
			// specify callback for loading completion
			oHTTP.onreadystatechange = gotTarget;
			
			oHTTP.send(null);
		}
	}

	function gotTarget() {
	
		// see if loading is complete
		if (oHTTP.readyState == 4) {
		
			// check if there was an error
			if (oHTTP.status == 200) {
			
				// use response
				//document.write(oHTTP.responseText);
				//document.getElementById('imgWait').src = "image/transparent.gif";
			
			}
		}
	}
	
	
function getHTTPObject() {
	var xmlhttp;
	/*@cc_on
	@if (@_jscript_version >= 5)
	try {
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
		try {
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (E) {
		xmlhttp = false;
		}
	}
	@else
	xmlhttp = false;
	@end @*/
	if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
	try {
		xmlhttp = new XMLHttpRequest();
		} catch (e) {
			xmlhttp = false;
		}
	}
	return xmlhttp;
}

	
		
		