﻿function gethttp(){
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;}}
return xmlhttp;
}
function getCookie(c_name){if (document.cookie.length>0){c_start=document.cookie.indexOf(c_name + "=");if (c_start!=-1){c_start=c_start + c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if (c_end==-1) c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}}return "";}
function setCookie(c_name,value,expdays,cdomain){var savetodomain=(cdomain?cdomain:(document.domain.match(/[a-zA-Z0-9\-\_]+\.[a-zA-Z]{2,4}$/)));var exdate=new Date();exdate.setDate(exdate.getDate()+expdays);document.cookie=c_name+"="+escape(value)+((expdays==null)?"":";expires="+exdate.toGMTString())+";path=/"+(savetodomain?(";domain=."+savetodomain):"");}

var cookieEnabled = (navigator.cookieEnabled)?true:false;
if (!cookieEnabled && typeof navigator.cookieEnabled=="undefined"){// not NS6+ or IE4+
document.cookie="testcookie";cookieEnabled=(document.cookie.indexOf("testcookie")!=-1)? true:false}