//统计页面浏览次数
function View_Times_chk( id, folder_url ){
	if ( id == "" ) return "";

	delete xmlhttp ;
	var xmlhttp;
	if (xmlhttp==null || typeof(xmlhttp)!="object"){
		try{
			xmlhttp= new ActiveXObject('Msxml2.XMLHTTP');
		}catch(e){
			try{
				xmlhttp= new ActiveXObject('Microsoft.XMLHTTP');
			}catch(e){
				try{
					xmlhttp= new XMLHttpRequest();
				}catch(e){}
			}
		}
	}
	xmlhttp.open("post", folder_url + "view_times.php", true);
	xmlhttp.setRequestHeader("CONTENT-TYPE","application/x-www-form-urlencoded;text/xml;charset=utf-8");
	xmlhttp.send("id="+id);
}

//控制内容区中的图片大小
function img_size( obj ){
	var img_max_width = 550; //图片最大大小为550像素
	if ( obj.width > img_max_width ){
		obj.height = obj.height * ( img_max_width / obj.width );
		obj.width = img_max_width;
	}
}
