function getscreen() {

 return;
	var sw = screen.width;
	
	if (sw<1025) {
		$('mainleft').style.width='18%';
		$('maincontent').style.margin='0 0 0 18%';
	}
	
	if (sw<700) {
		$('mainleft').style.width='0';
		$('maincontent').style.margin='0 0 0 0';
	}

}



function ResizePage(){
	getscreen();
}

function getStyle(el, style) {
   if(!document.getElementById) return;

     var value = el.style[toCamelCase(style)];

    if(!value)
        if(document.defaultView)
            value = document.defaultView.
                 getComputedStyle(el, "").getPropertyValue(style);

        else if(el.currentStyle)
            value = el.currentStyle[toCamelCase(style)];

     return value;
}

function setStyle(objId, style, value) {
    document.getElementById(objId).style[style] = value;
}

function toCamelCase( sInput ) {
    var oStringList = sInput.split('-');
    if(oStringList.length == 1)
        return oStringList[0];
    var ret = sInput.indexOf("-") == 0 ?
       oStringList[0].charAt(0).toUpperCase() + oStringList[0].substring(1) : oStringList[0];
    for(var i = 1, len = oStringList.length; i < len; i++){
        var s = oStringList[i];
        ret += s.charAt(0).toUpperCase() + s.substring(1)
    }
    return ret;
}


getscreen();


function GetXHR() {
	var r=null
	try { r = new ActiveXObject("Msxml2.XMLHTTP"); }
	catch(e) {
		try { r = new ActiveXObject("Microsoft.XMLHTTP"); }
		catch(oc) { r = null; }
	}
	if (!r && typeof XMLHttpRequest != "undefined") { r = new XMLHttpRequest(); }

	return r
}

