window.onresize= doRefresh;
function doRefresh() {
	
	//document.location.reload();
	if(applyRefresh){
		window.location.href="published-articles.html";
	}
	//history.go(0);
	//window.location.reload()
}
	//Expand more info fucntion:
	applyRefresh = true;
	
	function resizeTrue(){
		applyRefresh = true;
	}
	
	var ie4 = false; 
		if(document.all) 
		{ie4 = true;}
		
	function getObject(id) {
	 if (ie4) {
		return document.all[id];
	   } else { 
		return document.getElementById(id); 
	   } 
	};
	 
	// Function for the first expandable form:
	function toggle(link, divId) {
	applyRefresh = false;
	var lText = link.innerHTML; 
	var d = getObject(divId);
	//alert(lText);
	 if (lText == '+ Read Essay') { 
	 
	  link.innerHTML = '- Close Essay';  
	   d.style.display = 'block'; 
	  } else {
	   link.innerHTML = '+ Read Essay'; 
	   d.style.display = 'none';
	   }
	}
	setInterval(resizeTrue,500);
