// JavaScript Document
function showCourseDetails(id)
{
	for(var i=1; i<=30; i++)
	{
		if(document.getElementById('articleDetails_'+i) != null)
		document.getElementById('articleDetails_'+i).style.display = 'none'
	}
	document.getElementById('articleDetails_'+id).style.display = 'block'
}

function closeCourseDetails(id)
{
	document.getElementById('articleDetails_'+id).style.display = 'none'
}



var xmlHttp = null;

function createXMLHttpRequest(){
	if (window.ActiveXObject){
		xmlHttpObj = new ActiveXObject("Microsoft.XMLHTTP");
	} else if (window.XMLHttpRequest) {
		xmlHttpObj = new XMLHttpRequest();
	}
}



function showKursInfo(id)
{
	//document.getElementById('detailContent').setAttribute('src', '/getArticle.php?id='+id);
	if(document.getElementById('detiframe') == null)
	{
		var _e=document.createElement("IFRAME");
		_e.setAttribute('src', '/getArticle.php?id='+id);
		_e.setAttribute('id', 'detiframe');
		document.getElementById('detailsCont').appendChild(_e);
	}
	else
	{
		document.getElementById('detiframe').setAttribute('src', '/getArticle.php?id='+id);
	}
	document.getElementById('articleDetails').style.display = 'block';
}


function closeDetails()
{
	document.getElementById('articleDetails').style.display = 'none';
}

