// JavaScript Document
function newsEdit(id){
/*	var iframeCell = document.getElementById('iframeCell_'+id);
	var headlineCell = document.getElementById('news_headline_'+id);
	var headline = document.getElementById('news_headline_h2_'+id);
	var newsTextCell = document.getElementById('news_text_'+id);
	
	headlineCell.innerHTML = '';
	var textCell = document.createElement('input');
	textCell.setAttribute('type', 'text');
	textCell.setAttribute('id', 'news_headline_edit_'+id);
	textCell.setAttribute('value', headline.innerHTML);
	
	var newsText = newsTextCell.innerHTML;
	newsTextCell.innerHTML = '';	
	newsText = str_replace('<br />', "", newsText);
	newsText = str_replace('<br>', "", newsText);
	
	var textarea = document.createElement('textarea');
	textarea.style.width = '99%';
	textarea.setAttribute('rows', '5');
	textarea.setAttribute('id', 'news_text_edit_'+id);
	textarea.innerHTML = newsText;
	
	var submitButton = document.createElement('input');
	submitButton.setAttribute('type', 'submit');
	submitButton.setAttribute('value', document.getElementById('Submit').innerHTML);
	submitButton.onclick = function(){
								document.getElementById('news_headline').value = document.getElementById('news_headline_edit_'+id).value;
								document.getElementById('news_text').value = document.getElementById('news_text_edit_'+id).value;	
								document.getElementById('news_form_'+id).submit(); 
							}		
	
	newsTextCell.appendChild(textarea);
	headlineCell.appendChild(textCell);
	headlineCell.appendChild(submitButton);*/
}

function newsDelete(id){
	/*if (confirm(document.getElementById('newsDeleteConfirm').innerHTML)){
		window.location = 'index.php?page=Home&action=Default&delete='+id;
	}*/
}