var xmlHttp;
function GetXmlHttpObject(){ 
	var objXMLHttp=null;
	if (window.XMLHttpRequest) objXMLHttp=new XMLHttpRequest();
	else if (window.ActiveXObject)	objXMLHttp=new ActiveXObject('Microsoft.XMLHTTP');
	return objXMLHttp;
}
function findPos(obj) {
	var pos = new Array();
	pos[0] = pos[1] = 0;
	if (obj.offsetParent) {
		pos[0] = obj.offsetLeft
		pos[1] = obj.offsetTop
		while (obj = obj.offsetParent) {
			pos[0] += obj.offsetLeft
			pos[1] += obj.offsetTop
		}
	}
	return pos;
}

function ElmWidth(obj) {
	if(obj.clientWidth) {
		return obj.clientWidth;
	} 
	else {
		if(obj.offsetWidth) {
			return obj.offsetWidth;
		}
	}	
}

function ElmHeight(obj) {
	if(obj.clientHeight) {
		return obj.clientHeight;
	} 
	else {
		if(obj.offsetHeight) {
			return obj.offsetHeight;
		}
	}	
}

function posTop(){
	if(typeof window.pageYOffset != 'undefined') return window.pageYOffset;
	else{ 
		if(document.documentElement && document.documentElement.scrollTop) return document.documentElement.scrollTop;
		else{
			if(document.body.scrollTop) return document.body.scrollTop;
			else return 0;
		} 
	}
}
function alertSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  var info = new Array(myWidth,myHeight);
  return info;
}
function new_open(val,width,height,scrollbars){
	var format = "toolbar=no, directories=no, status=no, menubar=no, resizable=no, copyhistory=no, left=200, top=0, width="+width+", height="+height+",scrollbars="+scrollbars;
	window.open(val,'',format);
}



