jQuery.noConflict();

function windowPrint(arg){
  var loc = window.location;
  var url = loc.protocol+"//"+loc.host+loc.pathname+arg;  
  window.open(url,'Preview',"scrollbars=1,location=1,width=800,height=600");
}

function showHistory(arg){
  var node = document.getElementById('articleHistory');
  var state = node.style.display;
  if(state == "block")
     document.location=arg;     
  else
     node.style.display="block";
}

function frm2Submit(id){
  var node = document.getElementById('frmArticle' + id);
  node.submit(); 
}

function frm2SubmitPza(id,news_action){
	  var node = document.getElementById('frmArticle' + id);
	  jQuery('#button_action_pzaId').attr('value',news_action);
	  node.submit(); 
	}


jQuery(document).ready( function() {
	jQuery('#mce_editor_0_resize').click( function() {
		var editorHeight = jQuery('.mceEditor').height();
		alert(editorHeight);
	});
});

function confirmationCancel(value, url) {
	var answer = confirm(value)
	if (answer){
		window.location = url;
	}
}

function confirmationSaveEditKeywords(value) {
	var answer = confirm(value)
	if (answer){
		check_validateSubmit('admFriendlyName');
	}
}

function confirmationSaveAsNew(value, id) {
	var answer = confirm(value)
	if (answer){
		frm2SubmitPza(id,'saveAsNewPza')
	}
}

function confirmationSaveNew(value, id) {
	var answer = confirm(value)
	if (answer){
		frm2SubmitPza(id,'savePza')
	}
}

function confirmationHistory(message, obj)
{
	var linkTo = obj.href;
	return confirm(message)
}



