﻿function DOM(){}
DOM.Get=function(id){return(document.getElementById(id));}
DOM.Create=function(tagName,css,html){var e=document.createElement(tagName);with(e){if(css)className=css;if(html)innerHTML=html;}return(e);}
DOM.CreateInput=function(type,css,value){var i=document.createElement("input");i.type=type;if(css)i.className=css;if(value)i.value=value;return(i);}
function QS(key){if(!location.href.split("?")[1])return(null);var pairs=location.href.split("?")[1].split("&");for(var i=0;i<=pairs.length-1;i++){if(key.toLowerCase()==pairs[i].split("=")[0].toLowerCase())return(pairs[i].split("=")[1]?decodeURI(pairs[i].split("=")[1]):null);}return(null);}
function XML(s,d,e,err){var xmlhttp=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP");xmlhttp.open(s.indexOf("?")>-1?"GET":"POST",s+(s.indexOf("?")>-1?"&":"?")+"seed="+Math.random(),true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){if((xmlhttp.status==200||xmlhttp.status==0)&&xmlhttp.responseXML){e(xmlhttp.responseXML.documentElement);} else {err(xmlhttp.responseText);}}};xmlhttp.send(d);}
function XMLDOM(string){if(window.ActiveXObject){var xmldom=new ActiveXObject("Microsoft.XMLDOM");xmldom.loadXML(string);}else if(window.DOMParser){var parser=new DOMParser();var xmldom=parser.parseFromString(string,'application/xml');};return xmldom;}
