function portletGetContent(baseUrl, languageKey, sectionKey, slotKey) {
	
	var onCompleteFunction = function(responseData) {
			if (responseData['html'] != null) {
			
				$('#portletslot-'+slotKey).html(responseData['html']);
			}
			eval(responseData['javascript']);
	}
	
	url = baseUrl + '/' + languageKey + '/'+sectionKey+'/' + slotKey;
	
	url += '.html';
	postData = null;
	methodType = 'GET';

    var myAjax = $.ajax({
    	url:url, 
    	type:methodType,
    	data:postData,
    	success:onCompleteFunction,
    	dataType:'json',
    	processData:false
    });
    
    return void(0);
}

function closeWindow() {
	top.window.close();
}
