var AjaxType="xml";
function $(i){return document.getElementById(i);}
function makeRequest(u,c){var h=false;if(typeof _RASCR=="undefined")_RASCR="";u+="&"+Math.random();
	if(window.XMLHttpRequest){h=new XMLHttpRequest();if(h.overrideMimeType){h.overrideMimeType('text/xml');}}
	else if(window.ActiveXObject){try{h=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{h=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){h=false;}}}
	if(!h){return false;};_awd=new Date();if(c!=null){h.onreadystatechange=function(){gcb(h,c);};/*dw();*/};h.open('GET',_RASCR+u,true);h.send(null);
}
var _aw='AjaxWaiting';var _awd;var _mawd=250;function dw(){if(!$(_aw))return;var d=(new Date())-_awd;if(d>_mawd)$(_aw).style.display='block'}function hw(){if($(_aw))$(_aw).style.display='none'}
function gcb(h,c){/*dw();*/if(h.readyState==4&&h.status==200){/*hw();*/if(typeof eval(c+"_Response")=="function"){eval(c+"_Response(gofr(h))");}}}
function gr(x){var n=x.childNodes;for(var i=0;i<n.length;i++){if(n[i].nodeType==1){return n[i];}}}
function gofr(h){var x=h.responseXML;if(!x||!x.childNodes.length){if(window.ActiveXObject){x=new ActiveXObject("Microsoft.XMLDOM");x.async=false;x.loadXML(h.responseText)}}return XmlToObject(gr(x));}
function DecimalFormat(s,p){var d='0000000000';
	if(typeof p=='undefined')p=2;else p=parseInt(p);if(p>10) p=10;s+='';var x=s.replace('.',',').split(',');var x1=x[0];
	if(x.length>1){x[1]=x[1]+d;x[1]=x[1].substr(0,p);x[1]=d+x[1];x[1]=x[1].substr(x[1].length-p,p);var x2=','+x[1];}else{var x2=','+d;x2=x2.substr(0,p+1);}
	var rgx=/(\d+)(\d{3})/;while(rgx.test(x1)){x1=x1.replace(rgx,'$1'+' '+'$2');}
	var r=x1+""+x2;return r.replace(".",",");
}
function IntegerFormat(s){return DecimalFormat(s).split(',')[0];}
var _dt=0;
function Dump(o){for(var i in o){var t=typeof o[i];if(t=="function")continue;
	for(var j=0;j<_dt;j++){document.write("&nbsp;&nbsp;&nbsp;&nbsp;")}
	document.write(i+"=("+t+")"+o[i]+"<br>");
	if(t=="object"){_dt++;Dump(o[i]);_dt--;}
}}function dump(o){return Dump(o);}function DUMP(o){return Dump(o);}
function XmlToObject(r){
	var o=new Object();
	for(var i=0;i<r.childNodes.length;i++){
		var c=r.childNodes[i];var a=c.attributes;var cN=c.nodeName;
		if(c.nodeType==1){o[cN]=new Object();for(var j=0;j<a.length;j++){o[cN][a[j].nodeName]=a[j].nodeValue;};ctoo(o[cN],c);}
	};return o;
}
function atoo(o,a){for(var i=0;i<a.length;i++){o[a[i].nodeName]=a[i].nodeValue;}}
function ctoo(o,n){var nN=n.nodeName;var nn=n.childNodes;var na=n.attributes;atoo(o,na);
	for(var i=0;i<nn.length;i++){var c=nn[i];var a=c.attributes;var cn=c.childNodes;var cnl=cn.length;var cN=c.nodeName;var cv=c.nodeValue;var cf=c.firstChild;
		switch(c.nodeType){case 1:
		if((cnl==1&&cf.nodeType==3)||(cnl>0&&cf.nodeType==4)){o=ctoo(o, c);
		}else if(cnl>0&&cf.nodeType!= 4){atoo(o,a);
			for(var j=0;j<cnl;j++){if(cn[j].nodeType==1){if(typeof o[cN]=="undefined"){o[cN]=new Array();}var ni=o[cN].length;o[cN][ni]=new Object();ctoo(o[cN][ni],cn[j]);}}
		};break;
		case 2:break;case 3:o[nN]=cv;break;case 4:o[nN]=cv;break;case 6:break;case 8:break;}
	};return o;
}
function fc(i){return String.fromCharCode(i);}function ca(s,i){return s.charCodeAt(i);}
var Utf8={encode:function(s){
	s=s.replace(/\r\n/g,"\n");var u="";
	for(var n=0;n<s.length;n++){var c=ca(s,n);
		if(c<128){u+=fc(c);}
		else if((c>127)&&(c<2048)){u+=fc((c>>6)|192);u+=fc((c&63)|128);}
		else{u+=fc((c>>12)|224);u+=fc(((c>>6)&63)|128);u+=fc((c&63)|128);}
	};return u;},
decode:function(u){
	var s="";var i=0;var c=c1=c2=0;
	while(i<u.length){c=ca(u,i);
		if(c<128){s+=fc(c);i++;}
		else if((c>191)&&(c<224)){c2=ca(u,i+1);s+=fc(((c&31)<<6)|(c2&63));i+=2;}
		else{c2=ca(u,i+1);c3=ca(u,i+2);s+=fc(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3;}
	};return s;
}}
