function GetXmlHttpObject()
{
	var xmlHttpRequest = null;
	// branch for native XMLHttpRequest object
	if ((window.XMLHttpRequest != null) && (window.ActiveXObject == null))
	{
		try
		{
			xmlHttpRequest = new XMLHttpRequest();
		}
		catch(e){}
	}
	
	// branch for IE/Windows ActiveX version
	else if (window.ActiveXObject != null)
	{
		try
		{
			xmlHttpRequest = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e)
		{
			try
			{
				xmlHttpRequest=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e) {}
		}
	}
	return xmlHttpRequest;
}



function popitup(strURI, strName, iHeight, iWidth)
{
	var newwindow = '';
	
	if ((newwindow.closed == false) && newwindow.location)
	{
		newwindow = window.open(strURI,strName,'height=' + iHeight,'width=' + iWidth);
		if (!newwindow.opener)
		{
			newwindow.opener = self;
		}
	}
	else
	{
		newwindow = window.open(strURI,strName,'height=' + iHeight + ',width=' + iWidth + ',left=0,top=0,screenX=0,screenY=0');
		if (!newwindow.opener)
		{
			newwindow.opener = self;
		}
	}
	
	if (window.focus)
	{
		newwindow.focus();
	}
}



function Edit(ID, strContentURL) {
	msgWindowE = window.open('/admin/worklist/worklist_edit.asp?ID='+ID+'&amp;ft=1&amp;admin=1&amp;closeme=1','Neu','toolbar=no,width=800,height=600,directories=no,status=yes,scrollbars=yes,menubar=no',true);
	msgWindowE.focus();
}

function Create(ProzID, secdesc, strContentURL){ 
	msgWindowE = window.open('/admin/worklist/worklist_mask.asp?ID='+ProzID+'&amp;SecDescID='+secdesc+'&amp;ft=1&amp;closeme=1','Neu','toolbar=no,width=800,height=600,directories=no,status=yes,scrollbars=yes,menubar=no',true); 
	msgWindowE.focus(); 
}

function Dup(ID, strContentURL){ 
	msgWindowE = window.open('/admin/worklist/worklist_edit.asp?ID='+ID+'&amp;ft=1&amp;admin=1&amp;dup=1&amp;redir='+strContentURL+'&amp;closeme=1','Neu','toolbar=no,width=800,height=600,directories=no,status=yes,scrollbars=yes,menubar=no',true); 
	msgWindowE.focus();
}

function popupContent(NodeId,strContentURL)	{
	msgWindowE=window.open(NodeId,'popUp','toolbar=no,width=800,height=600,directories=no,status=yes,scrollbars=yes,menubar=no',true);
	msgWindowE.focus();
}


/*function ArtikelDelete(id,strContentURL) {
	if (confirm('Wollen Sie diesen Artikel wirklich löschen ?')) {
		document.location='/admin/worklist/delete_article.asp?ID=' + id+'&amp;redir='+strContentURL;
	}
}*/
	