function show(id) {
		
		sita = document.getElementById(id);
		
		if(sita.style.display == 'block') {
				sita.style.display = 'none';
		} else {
				sita.style.display = 'block';
		}
}

function show_news(openid) {
	
	for(var i=1; i < 4; i++) {
			 name = '__news_date__' + i;  name2 = '__news_top__' + i; name3 = '__news_bg__' + i; name4 = '__show__' + i; name5 = '__news_end__' + i;

			document.getElementById(name).className = 'blue_date';
			document.getElementById(name2).className = 'blue_top';
			document.getElementById(name3).className = 'blue_bg';
			document.getElementById(name4).style.display = 'none';
			document.getElementById(name5).className = 'blue_end';
	}
	
	opened_name =  '__news_date__' + openid; opened_name2 = '__news_top__' + openid; opened_name3 = '__news_bg__' + openid; opened_name4 = '__show__' + openid; opened_name5 = '__news_end__' + openid;
	
	
			document.getElementById(opened_name).className = 'red_date';
			document.getElementById(opened_name2).className = 'red_top';
			document.getElementById(opened_name3).className = 'red_bg';
			document.getElementById(opened_name4).style.display = 'block';
			document.getElementById(opened_name5).className = 'red_end';
	


}

  /*function makePOSTRequest(url, parameters) {
      http_request = false;
      if (window.XMLHttpRequest) { // Mozilla, Safari,...
         http_request = new XMLHttpRequest();
         if (http_request.overrideMimeType) {
         	// set type accordingly to anticipated content type
            //http_request.overrideMimeType('text/xml');
            http_request.overrideMimeType('text/html');
         }
      } else if (window.ActiveXObject) { // IE
         try {
            http_request = new ActiveXObject("Msxml2.XMLHTTP");
         } catch (e) {
            try {
               http_request = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e) {}
         }
      }
      if (!http_request) {
         alert('Cannot create XMLHTTP instance');
         return false;
      }
      
      http_request.onreadystatechange = alertContents;
      http_request.open('POST', url, true);
      http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
      http_request.setRequestHeader("Content-length", parameters.length);
      http_request.setRequestHeader("Connection", "close");
      http_request.send(parameters);
	  
	  document.getElementById('just_completed').innerHTML = '<br /><br /><div style="font:11px verdana; color:#666666; background-color:#ffffff; height:auto; padding:5px; width:45px; text-align:center; margin:0 auto;"><img src="/img/loading.gif" width="16" height="16" /><br />Loading</div><br /><br /';  
   }
   
   
    function alertContents() {
      if (http_request.readyState == 4) {
         if (http_request.status == 200) {
            //alert(http_request.responseText);
            result = http_request.responseText;
            document.getElementById('just_completed').innerHTML = result;            
         } else { }
      }
   }
   
   function getContent(url) {
	   var poststr = '';
	 	makePOSTRequest(url, poststr);  
   }*/
   
   function makeRequest(obj,url,variables) {
	   
	   // split the variables that need to be read
	   var info = variables.split("|");
	   var poststr = '';
	
		for(var i=0; i < info.length; i++) {
			   
			   //alert(info[i])
			   poststr = poststr +  info[i] + '=' + encodeURI(document.getElementById(info[i]).value) + '&';
			   
		}
		   
      //var poststr = "MinPrice=" + encodeURI( document.getElementById("MinPrice").value ) +
        //            "&MaxPrice=" + encodeURI( document.getElementById("MaxPrice").value );
      makePOSTRequest(url, poststr);
   }