function ShowFileBrowser(Path, Mode, Value, Referrer, Id, ForeignId, AusstellerDir)
{
	var sOptions = "toolbar=no,status=no,resizable=yes,dependent=yes" ;
	sOptions += ",width=" + 600 ;
	sOptions += ",height=" + 600 ;
		
	
	var location = Path + '/adminTools/TextEditor/EditorPopUp.aspx?';
	location += 'MODE=' + Mode + '&VALUE=' + Value + '&REFERRER=' + Referrer; 
	location += '&ID=' + Id + '&HEIGHT=600&WIDTH=600';
	location += '&WORKINGDIR=' +  AusstellerDir;
	var newwin = window.open(location, "ImageBrowser", sOptions);
	
	document.getElementById('contentEdit_aussteller_txtAusstellerId').value = ForeignId;
	document.getElementById('contentEdit_aussteller_txtLinkId').value = Referrer;
			
}

function ShowFileBrowserProdukte(Path, Mode, Value, Referrer, Id, ForeignId, AusstellerID,  AusstellerDir)
{
	var sOptions = "toolbar=no,status=no,resizable=yes,dependent=yes" ;
	sOptions += ",width=" + 600 ;
	sOptions += ",height=" + 600 ;
		
	var location = Path + '/adminTools/TextEditor/EditorPopUp.aspx?';
	location += 'MODE=' + Mode + '&VALUE=' + Value + '&REFERRER=' + Referrer; 
	location += '&ID=' + Id + '&HEIGHT=600&WIDTH=600';
	location += '&WORKINGDIR=' +  AusstellerDir;
	var newwin = window.open(location, "ImageBrowser", sOptions);
	
	document.getElementById('contentEdit_produkte_txtProduktId').value = ForeignId;
	document.getElementById('contentEdit_produkte_txtAusstellerId').value = AusstellerID;
	document.getElementById('contentEdit_produkte_txtLinkId').value = Referrer;
}

function clickButton(e, buttonid){ 
      var bt = document.getElementById(buttonid); 
      if (typeof bt == 'object'){ 
            if(navigator.appName.indexOf("Netscape")>(-1)){ 
                  if (e.keyCode == 13){ 
                        bt.click(); 
                        return false; 
                  } 
            } 
            if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1)){ 
                  if (event.keyCode == 13){ 
                        bt.click(); 
                        return false; 
                  } 
            } 
      } 
}

