﻿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;}
}
function executeUrlSynch(url){
	xmlhttp.open("GET", url,false);
	xmlhttp.onreadystatechange=function() {	if (xmlhttp.readyState==4 && xmlhttp.status == 200) {} }
	xmlhttp.send(null);
	if(!xmlhttp.getResponseHeader("Date"))
		{
		var cached = xmlhttp;
		xmlhttp = (typeof(XMLHttpRequest) != "undefined") ?
			new XMLHttpRequest() : new ActiveXObject("Msxml2.XMLHTTP");
		var ifModifiedSince = cached.getResponseHeader("Last-Modified");
		ifModifiedSince = (ifModifiedSince) ?
			  ifModifiedSince : new Date(0); // January 1, 1970
		xmlhttp.open("GET", url, false);
		xmlhttp.setRequestHeader("If-Modified-Since", ifModifiedSince);
		xmlhttp.send("");
		if(xmlhttp.status == 304)
		{
		xmlhttp = cached;
		}
}



}
function executeUrlAndRedirect(url,redirect){
 xmlhttp.open("GET", url,true);
 xmlhttp.onreadystatechange=function() {
  if (xmlhttp.readyState==4 && xmlhttp.status == 200) {}
 }
xmlhttp.send(null);
window.location= redirect;
}
function executeUrl(url){
 xmlhttp.open("GET", url,true);
 xmlhttp.onreadystatechange=function() {
  if (xmlhttp.readyState==4 && xmlhttp.status == 200) {}
 }
xmlhttp.send(null)
}
if (typeof(Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();

if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();