function makeRequest()
{
		try{return new ActiveXObject("Msxml2.XMLHTTP");}catch(e){}
		try{return new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}
		try{return new XMLHttpRequest();}catch(e){}
		return false;
}

function getContent(site, pic_site){	
	var http = 0;
	var content = 0;
	http = makeRequest();
	if(http != null)
		{
			http.open("GET", ""+site+"", true);
			
			http.onreadystatechange = function () {
        		if (http.readyState == 4) {
            			content = http.responseText;
						document.getElementById('content').innerHTML = content;
        				}
    				};  
			
			http.send(null);
		}
	
	if(pic_site){		
		http2 = makeRequest();
		if(http2 != null)
			{
				http2.open("GET", ""+pic_site+"", true);
			
				http2.onreadystatechange = function () {
    	    		if (http.readyState == 4) {
        	    			content = http2.responseText;
							document.getElementById('pics').innerHTML = content;
        					}
    					};  
			
				http2.send(null);
			}
	}
	
}
