function getXMLData(xmlstr,rtrnFunc){
	var xmlObj;
    if (document.implementation && document.implementation.createDocument){ 
        // mozilla, vs,..
		xmlObj = new XMLHttpRequest();
	} else if (window.ActiveXObject){ 
		// ie
		xmlObj = new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlObj.onreadystatechange = function () {
		if (xmlObj.readyState == 4 && xmlObj.status==200) rtrnFunc(xmlObj.responseXML);
	};
	var d = new Date();
	xmlObj.open("GET",xmlstr+"?"+d.getTime(),true);
	xmlObj.send( null );
}

function setVideoImagePlayer(_xmlURL,_id,_viDiv){
	AC_writeObjectID = _viDiv;
	AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width', '683',
			'height', '312',
			'src', 'swf/videoimage_viewer.swf',
			'movie', 'swf/videoimage_viewer.swf',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'id', 'videoimage_viewer'+_id,
			'bgcolor', '#0e0b0b',
			'name', 'videoimage_viewer'+_id,
			'menu', 'false',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'flashvars', 'xmlURL='+_xmlURL
			);
}
function set_VideoImagePlayer(_xmlURL,_id,_viDiv){
	AC_writeObjectID = _viDiv;
	AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width', '683',
			'height', '312',
			'src', 'swf/videoimae_viewer.swf',
			'movie', 'swf/videoimae_viewer.swf',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'id', 'videoimage_viewer'+_id,
			'bgcolor', '#0e0b0b',
			'name', 'videoimage_viewer'+_id,
			'menu', 'false',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'flashvars', 'xmlURL='+_xmlURL
			);
}
function replaceUrlChars(txt,typ){
	if(typ==0){
    	chars = [/&/g,/=/g,/</g,/>/g,/"/g,/'/g];
    	rChars = ["{_and_}","{_equal_}","{_lt_}","{_gt_}","{_quot_}","{_apos_}"];
	}else if(typ==1){
		chars = [/&amp;/g,/{_and_}/g,/{_equal_}/g,/{_lt_}/g,/{_gt_}/g,/{_quot_}/g,/{_apos_}/g];
		rChars = ["&","&","=","<",">",'"',"'"];    	
	}
	for(i=0;i<chars.length;i++){
        txt = txt.replace(chars[i],rChars[i]);
    }
    return txt;
}