function openDeleteConfirm(message, target){
	check = confirm(message);
	if(check == true) {
		window.location.href=target;
	}
}
function openProjectPopup(url, projectId) {
	var popWidth  = 1024;
	var leftX  = (screen.width) ? (screen.width-popWidth)/2 : 0;

	var win = window.open(url, "projectPopup", "location=yes, menubar=no, resizable=yes,status=yes,scrollbars=yes");
	win.resizeTo(popWidth,screen.availHeight);
	win.moveTo(leftX,0);
	win.focus();
}

function blankNewWindow (url, title, width, height) {
  	var top = (screen.height - height) / 2;
	var left = (screen.width - width) / 2;
	popup = window.open(url, title, "left=" + left + ",top=" + top + ",height="+height+",width="+width+",location=yes,menubar=no,resizable=yes,status=no,scrollbars=yes");
  	popup.focus();
}

function setTarget(target) {
	document.forms['masterForm'].action=target;
};


//aufrufen des target und schreiben der ActionForm.
function setTargetAndSubmit(target) {
	document.forms['masterForm'].action=target;
	document.forms['masterForm'].submit();
}

function openAlert(message){
	alert(message);
}

function openWarningConfirm(message, target){
	check = confirm(message);
	if(check == true) {
		document.forms['masterForm'].action=target;
		document.forms['masterForm'].submit();
	}
}


