window.appVersion =window.navigator.appVersion;
if(window.appVersion!=null){
	window.appVersion = window.appVersion.toUpperCase(); 
	window.MacIE5 =((window.appVersion.toUpperCase().indexOf("MSIE") >=0) && (window.appVersion.toUpperCase().indexOf("MACINTOSH") >=0) && (window.appVersion.indexOf("5.0")>=0));
};
window.OPR =(window.opera!=null)|| false;window.IE = (document.all && (!window.OPR))|| false;
window.IE55 = (window.IE && window.createPopup!=null &&document.createComment==null) || false;
window.MOZ = (window.outerWidth && !window.OPR && (window.navigator.product!=null)) || false;
window.IE50 = (window.IE &&(document.createTextNode!=null) && (window.createPopup==null)) || false;
window.IE60= (window.IE && document.createComment!=null ) || false;window.IE40 = (document.all &&!window.IE50 && !window.IE55 && !window.IE60 &&(window.opera==null) ) || false;
window.MS =( window.navigator.userAgent.toLowerCase().indexOf("windows") >= 0 ) || false;
window.MAC =( window.navigator.appVersion.toLowerCase().indexOf("mac") >= 0 ) || false ;
window.CSS1 = (document.compatMode!=null)||false;
window.GDA = (( window.IE55 ||window.IE50 || window.MOZ || window.IE60 ) && !window.MAC);
if(window.IE){ 
	window.WIN98 = (window.navigator.userAgent.toLowerCase().indexOf("windows 98")>=0); /* windows98 has serous pronlem with DirectX when use filter, we need to remove that;*/
};

function gObj(ID){
	if(document.getElementById==null){
		document.getElementById =document.all;
	};
	if(ID==null){
		return null;
	};
	return document.getElementById(ID);
};

function gTags(srcDocument, TagName){
	if(document.getElementsByTagName==null){
		return (new Array());
	};
	if(TagName==null){
		return (new Array());
	};
	return srcDocument.getElementsByTagName(TagName);
};

function gAttr(srcObj,attributeName){
	if(srcObj==null ||attributeName==null){
		return null;
	};
	if(srcObj.getAttribute == null){
		return null ;
	};
	attributeName = srcObj.getAttribute(attributeName);
	if(attributeName==""){
		attributeName=null
	};
	return attributeName;
};
