﻿// JScript-Datei

function getConfirm(confirmTxt){
  var agree = confirm(confirmTxt);
  if (agree)
		return true ;
  else
		return false ;
}

function submitAndClose(){
	opener.document.forms[0].submit();
	self.close();
}

function openExternPopUp(wUrl,wName,wOptions){
	if((wOptions == "") && (wName.substring(0,3) == "cms")){
		wOptions = "scrollbars=yes,width=800,height=600,resizable=yes";
	}
	mfmPop = window.open(wUrl,wName,wOptions);
}

//Ajaxobjekt erzeugen.
function getAjaxObj(){
	if(window.XMLHttpRequest){
		return new XMLHttpRequest();
	}else{
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
}

//Text-Daten abfragen und zurückgeben
function getAjaxTxt(theUrl){
	AjaxObj = getAjaxObj()
	AjaxObj.open("get",theUrl,false);
	AjaxObj.send(null);
	var ret = AjaxObj.responseText;
	return AjaxObj.responseText;
}

