public void changeValue( String name, String newvalue, int value )
	{
		if( value == 0 )
		{
			String secretcontent = fm.removeComment( new StringBuffer(fm.getContentofFile( getSecretFile())) );
			StringBuffer secBuffer = new StringBuffer( secretcontent );
		
			if( secretcontent.indexOf( ";" + name + "=" ) == -1 && secretcontent.indexOf( name + "=" ) == 0 )
			{
				//this.rewriteSecretFile( secretcontent.replaceAll( name + "=",  newvalue ) );
				this.rewriteSecretFile( Pattern.quote(newvalue + secBuffer.delete(0, name.length()).toString()) );
			}else
			{
				this.rewriteSecretFile( secretcontent.replaceAll(  Pattern.quote(";" + name  + "=") ,  Pattern.quote(";" + newvalue  + "=") ));
				
			}
			
		}
		
		//passwd
		if( value == 1 )
		{
			String temp = fm.removeComment( new StringBuffer(fm.getContentofFile( getSecretFile())) );
			StringBuffer secretcontent = new StringBuffer( temp );
			StringBuffer secBuffer = new StringBuffer( secretcontent );
			
			int startindexpasswd;
			int endofpasswd;
			if( secretcontent.indexOf( ";" + name + "=" ) == -1 && secretcontent.indexOf( name + "=" ) == 0 )
			{
				startindexpasswd =  name.length()+1;
				//this.rewriteSecretFile( secBuffer.delete(0, name.length()+1).toString() );
				endofpasswd = secretcontent.indexOf(";", startindexpasswd)+1;
			}else
			{
				startindexpasswd = secretcontent.indexOf(";" + name + "=") + name.length()+2;
				endofpasswd = secretcontent.indexOf(";", startindexpasswd);
			}
			
			
			this.rewriteSecretFile( secretcontent.replace( startindexpasswd, endofpasswd ,newvalue).toString() );
			
		}
		
		//name
		if( value == 2 )
		{
			String secretcontent = fm.removeComment( new StringBuffer(fm.getContentofFile( getSecretFile())) );
			StringBuffer secBuffer = new StringBuffer( secretcontent );
			
			//wenn der erste Eintrag gelöscht werden soll, ist da kein ; deswegen wird gefragt, ob der String
			// gefunden wurde und ob es auch der am Anfang ist.
			if( secretcontent.indexOf( ";" + name + "=" ) == -1 && secretcontent.indexOf( name + "=" ) == 0 )
			{
				//this.rewriteSecretFile( secretcontent.replaceAll( name + "=",  newvalue ) );
				this.rewriteSecretFile( secBuffer.delete(0, name.length()+1).toString() );
			}else
			{
				int startindex = secretcontent.indexOf(";" + name + "=");
				int endindex = startindex + name.length()+2;
				
				this.rewriteSecretFile( secBuffer.delete( startindex, endindex).toString() );
				//this.rewriteSecretFile( secretcontent.replaceAll( ";" + name + "=",  newvalue) );
			}
			
		}
		
	}